Smoke Grenade

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
SithMaster
Posts: 306
Joined: Mon Jul 04, 2005 11:45 pm
Contact:

Smoke Grenade

Post by SithMaster » Tue Jul 05, 2005 12:09 am

Me again this time i want to know how the grenade should work. I was thnaking about adding a fireing bone to the grenade so when it goes off after the time delay it uses a particle spray to shower out grey/black smoke. Then assuming the above works how would i set the amount of time the smoke stays? Grateful for any insight.

GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 » Tue Jul 05, 2005 2:43 pm

not hard at all, in fact something similar was in the original 071 install. you just need to create and explosion in explosion.ini here is the explosion from mine in case you dont have 071.

[RocketExplosion]
effect0 = Smoke
delay0 = 0
offset0 = 0 0 0

; particle spray

[Smoke]
type = spray
bitmapname = smoke.bmp
alphamapname = a_smoke.bmp
angles = 0 90 0
colormax = 237 230 37
colormaxalpha = 255
colormin = 237 40 37
colorminalpha = 200
sourcevariance = 2
destvariance = 2
gravity = 0 0 -45
maxscale = 0.25
minscale = 0.15
maxspeed = 210
minspeed = 190
maxunitlife = 3.4
minunitlife = 2.5
particlecreationrate = 0.005
bounce = false

just attach that to the projectile in weapon.ini and your done. if you want a true smoke grenade though you might need to script the pawns so that if a certain attribute drops (a special one for the smoke grenade) their visibility will be lowered.

User avatar
wackedoutbiker
Posts: 189
Joined: Tue Jul 19, 2005 9:11 pm

Post by wackedoutbiker » Fri Jul 22, 2005 10:34 pm

What attribute would you lower if it were tear gas instead?
More atrocities are committed in the name of that which is holy and righteous than that which is wicked and evil

GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 » Sat Jul 23, 2005 3:28 am

just any unique attribute that you can access by script and perform special actions based on it.
Check out my band
Tougher Than Fort Knox
Image

Post Reply