
Posts
605
Respect
52Add +1
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
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!#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
init()
{
level.kickbackmax = .4;
level.kickbackmin = .2;
level.kicksidemax = .3;
level.kicksidemin = .1;
players = GetPlayers();
array_thread(players,::walking);
array_thread(players,::kick_watch);
}
walking()
{
self endon("disconnect");
for(;;)
{
if(!self adsButtonPressed())
{
self SetClientDvar("bg_bobAmplitudeStanding",".1 0.01");
self SetClientDvar("bg_bobAmplitudeducking",".1 0.01");
if(self GetStance() == "prone")
self SetClientDvar("cg_gun_rot_minspeed", 0);
else
self SetClientDvar("cg_gun_rot_minspeed", -1000);
rotvar = self getvelocity() * anglestoright(self GetPlayerAngles());
rotvar = rotvar[0] + rotvar[1] + rotvar[2];
rotvar = int(rotvar/20);
self SetClientDvar("cg_gun_rot_r", rotvar);
}
else
{
self SetClientDvar("bg_bobAmplitudeStanding","0.01 0.001");
self SetClientDvar("bg_bobAmplitudeducking","0.01 0.001");
}
wait(0.1);
}
}
kick_watch()
{
self endon("disconnect");
for(;;)
{
self waittill("weapon_fired");
kickBack = RandomfloatRange(level.kickbackmin, level.kickbackmax);
kickSide = RandomfloatRange(level.kicksidemin, level.kicksidemax);
kickdown = RandomfloatRange(level.kicksidemin, level.kicksidemax);
kickback = kickback*-1;
kickdown = (kickdown/2)*-1;
if(randomint(2))
kickside = kickside*-1;
if(self adsButtonPressed())
{
kickback = kickback/3;
kickside = kickside/3;
kickdown = kickdown/3;
}
else
{
self SetClientDvar("cg_gun_rot_p", kickback*-12);
self SetClientDvar("cg_gun_rot_r", kickside*-12);
self SetClientDvar("cg_gun_rot_y", kickside*12);
}
self SetClientDvar("cg_gun_x", kickBack);
self SetClientDvar("cg_gun_y", kickside);
self SetClientDvar("cg_gun_z", kickdown);
wait 0.1;
self SetClientDvar("cg_gun_x", 0);
self SetClientDvar("cg_gun_y", 0);
self SetClientDvar("cg_gun_z", 0);
self SetClientDvar("cg_gun_rot_p", 0);
self SetClientDvar("cg_gun_rot_r", 0);
self SetClientDvar("cg_gun_rot_y", 0);
}
}
maps\name_of_file::init
flag_wait("all_players_connected");
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
- probably should have the script done in csc as this will have lag in coop
- include endon() functions in case the players disconnect
- probably should have the script done in csc as this will have lag in coop
- don't need to include dlc_code or dlc_teleporter
Who made this?
In all honesty looks nice though
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
yea i know, i just include those whenever i make a new script
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |