

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!// <player> thread dualwield_weapon_fired_notify_think(<weapon>);
// <player> thread dualwield_weapon_fired_notify_think("m1911_upgraded_zm");
// <player> thread dualwield_weapon_fired_notify_think("m1911lh_upgraded_zm");
dualwield_weapon_fired_notify_think(weapon)
{
self endon("disconnect");
ammo = 0;
max_clip = WeaponClipSize(weapon);
max_stock = WeaponMaxAmmo(weapon);
for(;;)
{
wait .05;
if(!self HasWeapon(weapon))
{
while(!self HasWeapon(weapon))
{
wait .05;
}
ammo = self GetWeaponAmmoClip(weapon) + self GetWeaponAmmoStock(weapon); // reset ammo since it should be a new instance of the weapon (just bought / obtained)
continue;
}
result = self waittill_any_return("weapon_fired", "reload_start");
clip = self GetWeaponAmmoClip(weapon);
stock = self GetWeaponAmmoStock(weapon);
if(result == "reload_start")
{
str_result = self waittill_any_return("reload", "weapon_change");
if(str_result == "weapon_change")
continue;
ammo = max_clip + max_stock; // FIXME: maybe this should be max_clip + stock (max + current)
}
else
{
test_ammo = clip + stock;
if(ammo < test_ammo)
{
ammo = test_ammo;
self notify("dualwield_weapon_fired", weapon);
IPrintLn(weapon);
}
}
}
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
How are you firing the left weapon, ads? Why not look for that and check the right side gun. I assume you can only have a certain gun in right and left hands?
ps, didn't notice it said bo1, oops
dualwield_weapon_fired_notify_think(weapon, weapon_upgraded, lh_weapon, lh_weapon_upgraded)
{
self endon("disconnect");
for(;;)
{
self waittill("weapon_fired");
current_weapon = self GetCurrentWeapon();
if(current_weapon == weapon || current_weapon == weapon_upgraded)
{
if(self ADSButtonPressed())
{
if(current_weapon == weapon_upgraded)
self notify("dualwield_weapon_fired", lh_weapon_upgraded);
else
self notify("dualwield_weapon_fired", lh_weapon);
}
else
self notify("dualwield_weapon_fired", current_weapon); // use current weapon so you know if its upgraded or not
}
}
}