Two new weapontypes
Posted: 25 Jan 2007, 12:16
Two very simple weapon types that would help with mods:
1. Instahit weapon that, when fired, simply spawns its explosion in the target with no projectile or collision checks done. If lineofsight is 1 the weapon would only fire if the line of fire is clear, otherwise it will ignore all obstacles.
2. Dummy weapon that goes through all the routines for firing (including ressource drain) and causes the appropriate script calls but doesn't spawn a projectile or explosion at all. Again lineofsight would decide if it will aim at targets behind obstacles (possibly with speed determining where it will aim so it aims properly at moving targets). This would be useful for scripting behaviours that get triggered by aim and fire functions but don't want an actual weapon fired. Just jamming the wepaon won't allow you to check if it should actually fire or if e.g. the target was gone by the time the aiming function finished or the user was only in FPS mode but didn't press fire.
1. Instahit weapon that, when fired, simply spawns its explosion in the target with no projectile or collision checks done. If lineofsight is 1 the weapon would only fire if the line of fire is clear, otherwise it will ignore all obstacles.
2. Dummy weapon that goes through all the routines for firing (including ressource drain) and causes the appropriate script calls but doesn't spawn a projectile or explosion at all. Again lineofsight would decide if it will aim at targets behind obstacles (possibly with speed determining where it will aim so it aims properly at moving targets). This would be useful for scripting behaviours that get triggered by aim and fire functions but don't want an actual weapon fired. Just jamming the wepaon won't allow you to check if it should actually fire or if e.g. the target was gone by the time the aiming function finished or the user was only in FPS mode but didn't press fire.