

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 effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |

"MOD_UNKNOWN",
"MOD_PISTOL_BULLET",
"MOD_RIFLE_BULLET",
"MOD_GRENADE",
"MOD_GRENADE_SPLASH",
"MOD_PROJECTILE",
"MOD_GRENADE_SPLASH",
"MOD_PROJECTILE",
"MOD_PROJECTILE_SPLASH",
"MOD_MELEE",
"MOD_HEAD_SHOT",
"MOD_CRUSH",
"MOD_TELEFRAG",
"MOD_FALLING",
"MOD_SUICIDE",
"MOD_TRIGGER_HURT",
"MOD_EXPLOSIVE",
"MOD_IMPACT",
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | 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 |
Hey Everyone,
Very new to modding cod and I've been trying to figure out how to tell if the player kills an enemy AI with a headshot. I've found some stuff for ai_lochit_dmgtable...and i've combed through a lot of source maps, but i don't see anyone reference this anywhere. Would someone be willing to point me in the right direction?
main()
{
maps\_load::main();
level.player takeallweapons();
level.player giveWeapon("mp5");
level.player switchToWeapon("mp5");
myArray = getentarray("badguys", "targetname");
for(i=0;i<myArray.size;i++)
{
myArray[i] thread HealthController();
}
thread HealthController();
}
HealthController()
{
CanRegen = false;
CurrentPlayerHealth = level.player.health;
while(1)
{
if(CanRegen)
{
level.player.health = level.player.maxhealth;
CurrentPlayerHealth = level.player.maxhealth;
iprintlnbold("hey its not crashing");
CanRegen = false;
}
else
{
level.player.health = CurrentPlayerHealth;
}
self waittill("damage", damage, attacker, direction_vec, point, type, modelName, tagName);
CanRegen = true;
}
}![]() | |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
zombie_death_points( origin, mod, hit_location, player,zombie )

zombie_death_points( origin, mod, hit_location, player,zombie )
{
//ChrisP - no points or powerups for killing zombies
if(IsDefined(zombie.marked_for_death))
{
return;
}
if( zombie_can_drop_powerups( zombie ) )
{
level thread maps\_zombiemode_powerups::powerup_drop( origin );
}
if( !IsDefined( player ) || !IsPlayer( player ) )
{
return;
}
// DUKIP - here
if(hit_location == "head")
{
player IPrintLnBold("BOOM HEADSHOT");
}
//TUEY Play VO if you get a Head Shot
//add this check ( 3/24/09 - Chrisp)
if(level.script != "nazi_zombie_prototype")
{
level thread play_death_vo(hit_location, player,mod,zombie);
}
player maps\_zombiemode_score::player_add_points( "death", mod, hit_location );
}