Plugin(or hack?) request - explosions to non-missile weapons
-
yea, sure. just have the projectile trigger an explosion [effect] on impact (munition_hit_effect line of [munition]). and since any [effect] can have a [sound] attached to it, too (snd_effect line of [effect]), you can simulate a simple (as in non-fuse-based) explosion on any weapon.
also, keep in mind, that technically all those gun types are more or less the same. you can as well have a missile that doesn’t have a visible model or trail, doesn’t seek the target and doesn’t need ammo to be bought. the player could hardly tell the difference except for the missile would have some explosion range on impact. -
just make it a missile that doesn’t need ammo, has a motor that does not modify its velocity, doesn’t have a trail effect or a model, doesn’t track targets and so on. basically, a missile, that only differs from a gun in that it has an explosion but at the same time lacking all the essential missile properties and remains having a typical gun fire behavior. original “flak” cannons are exactly this. the fire is just too slow but that is sure a matter to change. the game supports that kind of weaponry without any hacks or plugins.
however, the explosion will also be there if the projectile’s life time is over and it didn’t hit an object. that might be the only feature one might want to hack away. -
Ofcourse I thought about it, but this way it won’t “track” targets(target cross is in the same place while the target moves, not ahead of it like with guns), and it won’t be able to fire fast withot lag(some ammo is left near you and doesn’t fly away).