I want the gas to fill the room slowly (as in dont just have gas just appear suddenly around the player)
Everything in the script works fine except the mustard gas doesnt spread out
Moderator: Moderators
Code: Select all
///////////////////////////////
/////MUSTARD GAS HOUSE/////////
///////////////////////////////
mustard_gas:
$killgas_trigger waittill trigger
$killgas_switch anim turnon
$killgas_trigger nottriggerable
if ($player isTouching $killgas_check)
{
$killgas anim start
wait .3
$killgas1 anim start
$killgas2 anim start
wait .5
$killgas3 anim start
wait .25
$killgas4 anim start
wait .25
$killgas5 anim start
$killgas6 anim start
}
thread killem
end
//////////////////////
//Internal Thread/////
//////////////////////
killem:
thread stopgas
wait 1.35
while ($player isTouching $killgas_check)
{
$killgas_check volumedamage 77
wait 1
}
end
////////////////////////
////Internal Thread/////
////////////////////////
stopgas:
$killgas_trigger triggerable
$killgas_trigger waittill trigger
$killgas_switch anim turnoff
$killgas anim stop
$killgas_trigger volumedamage 0
goto mustard_gasCode: Select all
TIKI
setup
{
scale 1.0
path models/fx/dummy
skelmodel dummy3.skd
}
init
{
server
{
classname animate
notsolid
rendereffects +dontdraw
}
client
{
cache vsssource.spr
originemitter mustard_gas
(
spawnrate 5.00
model vsssource.spr
alpha 0.80
color 0.7 0.6 0.3
scale 0.25
life 1.00
scalerate 8.00
velocity 60.00
randvelaxis range 10 -10 range 10 -10 range 10 -10
accel 0.00 0.00 90.00
fade
)
}
}
animations
{
idle dummy3.skc
start dummy3.skc
{
client
{
enter loopsound steamloop
enter emitteron mustard_gas
}
}
stop dummy3.skc
{
client
{
enter emitteroff mustard_gas
}
}
}
/*QUAKED animate_fx_adam-mustard-gas(0.0 0.5 0.5) (-8 -8 -8) (8 8 8)
Senn's Sexy Mustard Gas
*/