

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!![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
ammomatic_init()
{
flag_wait( "all_players_connected" );
players = get_players();
for ( i = 0; i < players.size; i++ )
players[i] ammomatic();
}
ammomatic()
{
while(1)
{
self waittill("zom_kill");
if(self hasperk("specialty_specialgrenade"))
{
weapon = self GetCurrentWeapon();
if(weapon != "tesla_gun" && weapon != "tesla_gun_upgraded" )
{
current = self GetWeaponAmmoStock( weapon );
self SetWeaponAmmoStock( weapon, current + 1 );
}
}
}
}
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
place_perk( machine_origin, machine_angles, model, targetname, specialty, script_string, script_sound)
{
perk = Spawn( "script_model", machine_origin );
perk.angles = machine_angles;
perk setModel( model );
perk.targetname = targetname;
perk_trigger = Spawn( "trigger_radius", machine_origin + (0 , 0, 50), 0, 60, 50 );
perk_trigger.targetname = "zombie_vending";
perk_trigger.target = targetname;
perk_trigger.script_noteworthy = specialty;
spawnCollision("collision_geo_64x64x128", "collider", machine_origin+(0, 0, 50), machine_angles);
if(isdefined(script_string) && isdefined(script_sound))
{
struct = SpawnStruct();
struct.origin = machine_origin+(0,0,40);
struct.script_string = script_string;
struct.targetname = "perksacola";
struct.script_sound = script_sound;
}
}
level thread place_perk( (-84.8484, 540.435, 58.125), (0, 0, 90), "zombie_vending_mulekick", "vending_mule_kick", "specialty_extraammo");
level thread place_perk( (-84.8484, 540.435, 58.125), (0, 0, 90), "zombie_vending_mulekick", "vending_mule_kick", "specialty_extraammo", script_string, script_sound);
level thread place_perk( (-84.8484, 540.435, 58.125), (0, 0, 90), "zombie_vending_mulekick", "vending_mule_kick", "specialty_extraammo", "tap_perk", "mx_doubletap_jingle");
![]() | Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |