


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!// Grenades
itemDef
{
name "offhandFragIcon1"
type ITEM_TYPE_OWNERDRAW
rect GRENADE_X_START (WEAPINFO_Y-40) 15 15
forecolor 1 1 1 1
exp forecolor A (1/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 1)
decoration
}
//if 2 nades
itemDef
{
name "offhandFragIcon2"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START+(GRENADE_X_SPACE*1)) (WEAPINFO_Y-42.5) 15 15
forecolor 1 1 1 1
exp forecolor A (2/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 2)
decoration
}
// if 3 nades
itemDef
{
name "offhandFragIcon3"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START-(GRENADE_X_SPACE*2)) (WEAPINFO_Y-45) 15 15
forecolor 1 1 1 1
exp forecolor A (3/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 3)
decoration
}
// if 4 nades
itemDef
{
name "offhandFragIcon4"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START-(GRENADE_X_SPACE*3)) (WEAPINFO_Y-47.5) 15 15
forecolor 1 1 1 1
exp forecolor A (4/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 4)
decoration
}
![]() | 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 |
// if 4 nades
itemDef
{
name "offhandFragIcon4"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START-(GRENADE_X_SPACE*3)) (WEAPINFO_Y-47.5) 15 15
forecolor 1 1 1 1
exp forecolor A (4/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 4)
decoration
}
// if 3 nades
itemDef
{
name "offhandFragIcon3"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START-(GRENADE_X_SPACE*2)) (WEAPINFO_Y-45) 15 15
forecolor 1 1 1 1
exp forecolor A (3/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 3)
decoration
}
//if 2 nades
itemDef
{
name "offhandFragIcon2"
type ITEM_TYPE_OWNERDRAW
rect (GRENADE_X_START+(GRENADE_X_SPACE*1)) (WEAPINFO_Y-42.5) 15 15
forecolor 1 1 1 1
exp forecolor A (2/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 2)
decoration
}
itemDef
{
name "offhandFragIcon1"
type ITEM_TYPE_OWNERDRAW
rect GRENADE_X_START (WEAPINFO_Y-40) 15 15
forecolor 1 1 1 1
exp forecolor A (1/dvarInt("hud_player_ammo_grenade_primary"))
ownerdraw CG_OFFHAND_WEAPON_ICON_FRAG
background "the_giant_grenadeicon" // default texture
visible when(dvarInt("hud_player_ammo_grenade_primary") = 1)
decoration
}
They get drawn in the order they show up, so just put the one you want on the bottom first.
