
Posts
36
Respect
18Add +1
Forum Rank
Legless Crawler
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!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
round_spawning()
{
level endon( "intermission" );
/#
level endon( "kill_round" );
#/
round_spawning()
{
level endon( "intermission" );
level endon( "stop_round_spawning" );
/#
level endon( "kill_round" );
#/
kill_round_trigger()
{
cost = 1500;
user = undefined;
trig = getent( "end_round_trigger", "targetname" );
trig setCursorHint("HINT_NOICON");
trig UseTriggerRequireLookAt();
trig SetHintString( "Press &&1 to end the round. Cost: "+cost );
while(1)
{
trig waittill( "trigger", user );
if( user.score < cost )
continue;
trig disable_trigger();
user maps\_zombiemode_score::minus_to_player_score( cost );
level notify( "stop_round_spawning" );
zombies = GetAiSpeciesArray( "axis", "all" );
for( i=0 ; i<zombies.size ; i++ )
{
zombies[i] dodamage( zombies[i].health+666, zombies[i].origin );
wait 0.05;
}
// Cooldown time
wait 60;
trig enable_trigger();
}
}
First in _zombiemode look for this: Code SnippetPlaintextround_spawning()
{
level endon( "intermission" );
/#
level endon( "kill_round" );
#/
And change it into this: Code SnippetPlaintextround_spawning()
{
level endon( "intermission" );
level endon( "stop_round_spawning" );
/#
level endon( "kill_round" );
#/
Then use this script for the trigger: Code SnippetPlaintextkill_round_trigger()
{
cost = 1500;
user = undefined;
trig = getent( "end_round_trigger", "targetname" );
trig setCursorHint("HINT_NOICON");
trig UseTriggerRequireLookAt();
trig SetHintString( "Press &&1 to end the round. Cost: "+cost );
while(1)
{
trig waittill( "trigger", user );
if( user.score < cost )
continue;
trig disable_trigger();
user maps\_zombiemode_score::minus_to_player_score( cost );
level notify( "stop_round_spawning" );
zombies = GetAiSpeciesArray( "axis", "all" );
for( i=0 ; i<zombies.size ; i++ )
{
zombies[i] dodamage( zombies[i].health+666, zombies[i].origin );
wait 0.05;
}
// Cooldown time
wait 60;
trig enable_trigger();
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
Could i use this with a trigger multiple and without cost and without the hintstring and only 1 time usable because i want to use this to teleport in a bossroom.
kill_round_trigger()
{
trig = getent( "end_round_trigger", "targetname" );
trig waittill( "trigger" );
level notify( "stop_round_spawning" );
zombies = GetAiSpeciesArray( "axis", "all" );
for( i=0 ; i<zombies.size ; i++ )
{
zombies[i] dodamage( zombies[i].health+666, zombies[i].origin );
wait 0.05;
}
trig delete();
}
Code SnippetPlaintextkill_round_trigger()
{
trig = getent( "end_round_trigger", "targetname" );
trig waittill( "trigger" );
level notify( "stop_round_spawning" );
zombies = GetAiSpeciesArray( "axis", "all" );
for( i=0 ; i<zombies.size ; i++ )
{
zombies[i] dodamage( zombies[i].health+666, zombies[i].origin );
wait 0.05;
}
trig delete();
}