Smoke Grenade
- SithMaster
- Posts: 306
- Joined: Mon Jul 04, 2005 11:45 pm
- Contact:
Smoke Grenade
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.
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.
[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.
- wackedoutbiker
- Posts: 189
- Joined: Tue Jul 19, 2005 9:11 pm