Two new weapontypes

Two new weapontypes

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Two new weapontypes

Post by KDR_11k »

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.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

#2 is already possible. Simply make a weapon that is silent, uses whatever aimtype you want, etc., and uses a S3O or 3DO model that is just a point object.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

#1 is already possible


[talAgun]
{
name=Rockets;
interceptedbyshieldtype=1;
rendertype=1;//MISSLE
lineofsight=1;//YARGH
turret=1;// AIM TO FIRE?
model=invisible;// EMPTY MODEL OR SUMTHIN
range=525;
Trajectoryheight=1;//PREVENT FPS ABUSEMENT
Wobble=0;//NONE
reloadtime=5.9;
Turnrate=6000000;//SPRING ENGINE HANDLES THIS SOMEHOW
weapontimer=2;
weaponvelocity=5000;//SPRING ENGINE HANDLES THIS SOMEHOW
startvelocity=3000;//SPRING ENGINE HANDLES THIS SOMEHOW
weaponacceleration=85;//SPRING ENGINE HANDLES THIS SOMEHOW
areaofeffect=76;
metalpershot=0;
soundstart=ROCKET;
soundhit=ROCKXPL3;
firestarter=70;
smokedelay=5.1;
selfprop=1;
smoketrail=0;//NO
startsmoke=1;//DOSENT WORK ANYWAY
guidance=1;/NEVER MISS
tracks=1;// NEVER MISS
tolerance=1000;
[DAMAGE]
{
default=110;
TALBMB=122;
TALAP=60;
TALAINF=140;
}
}

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. talon mod already has this, but i offer it to you for dissecting!
Post Reply

Return to “Feature Requests”