Posts
307
Respect
105Add +1
Forum Rank
Perk Hacker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
gasfire_radius(origin, radius)
{
trigger = Spawn( "trigger_radius", origin, 0, radius, 48 );
while(1)
{
trigger waittill( "trigger", other );
if(isPlayer(other))
{
other DoDamage( level.gascans["damage_player"], origin );
}
if(isai(other))
{
other DoDamage( level.gascans["damage_ai"], origin );
}
wait(level.gascans["loop_wait"]);
}
trigger delete();
}Just spawn a trigger radius and damage anything inside it.
You can use my unfinished shootable gas can function i was working on as an reference if you don't know how to do that: Code SnippetPlaintextgasfire_radius(origin, radius)
{
trigger = Spawn( "trigger_radius", origin, 0, radius, 48 );
while(1)
{
trigger waittill( "trigger", other );
if(isPlayer(other))
{
other DoDamage( level.gascans["damage_player"], origin );
}
else if(isai(other))
{
other DoDamage( level.gascans["damage_ai"], origin );
}
wait(level.gascans["loop_wait"]);
}
trigger delete();
}
Trigger radius without "KVP"? (need like Cod WAW MISSIONS)
while(1)
{
RadiusDamage( (0, 0, 0), radius_size, max_dmg, min_dmg );
wait 1;
}