- make use of HLWeaponSelect
This commit is contained in:
parent
ab6472f5be
commit
4927cf5157
12 changed files with 17 additions and 10 deletions
|
@ -292,7 +292,7 @@ HUD_Draw(void)
|
||||||
Damage_Draw();
|
Damage_Draw();
|
||||||
HUD_DamageNotify_Draw();
|
HUD_DamageNotify_Draw();
|
||||||
HUD_DrawHealth();
|
HUD_DrawHealth();
|
||||||
HUD_DrawWeaponSelect();
|
pSeatLocal->weaponSelectionHUD.Draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -25,6 +25,12 @@ void
|
||||||
ClientGame_Init(float apilevel, string enginename, float engineversion)
|
ClientGame_Init(float apilevel, string enginename, float engineversion)
|
||||||
{
|
{
|
||||||
Obituary_Init();
|
Obituary_Init();
|
||||||
|
|
||||||
|
registercommand("lastinv");
|
||||||
|
registercommand("invnext");
|
||||||
|
registercommand("invprev");
|
||||||
|
|
||||||
|
pSeatLocal->weaponSelectionHUD = spawn(HLWeaponSelect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -32,6 +32,7 @@ entities.qc
|
||||||
../../../valve/src/client/hud_dmgnotify.qc
|
../../../valve/src/client/hud_dmgnotify.qc
|
||||||
../../../valve/src/client/hud_ammonotify.qc
|
../../../valve/src/client/hud_ammonotify.qc
|
||||||
../../../valve/src/client/hud_itemnotify.qc
|
../../../valve/src/client/hud_itemnotify.qc
|
||||||
|
../../../valve/src/client/HLWeaponSelect.qc
|
||||||
hud.qc
|
hud.qc
|
||||||
hud_weaponselect.qc
|
hud_weaponselect.qc
|
||||||
../../../valve/src/client/hud_sprite.qc
|
../../../valve/src/client/hud_sprite.qc
|
||||||
|
|
|
@ -11,5 +11,5 @@ entityDef weapon_aicore
|
||||||
"model_view" "models/v_aicore.mdl"
|
"model_view" "models/v_aicore.mdl"
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"hudSlot" "1"
|
"hudSlotPos" "1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,5 @@ entityDef weapon_beamgun
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "70"
|
"weight" "70"
|
||||||
"hudSlot" "5"
|
"hudSlotPos" "5"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,5 @@ entityDef weapon_SPchemicalgun
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "80"
|
"weight" "80"
|
||||||
"hudSlot" "8"
|
"hudSlotPos" "8"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,5 @@ entityDef weapon_dml
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "40"
|
"weight" "40"
|
||||||
"hudSlot" "6"
|
"hudSlotPos" "6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ entityDef weapon_fists
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "10"
|
"weight" "10"
|
||||||
"hudSlot" "0"
|
"hudSlotPos" "0"
|
||||||
|
|
||||||
"def_fireInfo" "fireInfo_fists"
|
"def_fireInfo" "fireInfo_fists"
|
||||||
"def_altFireInfo" "fireInfo_knife"
|
"def_altFireInfo" "fireInfo_knife"
|
||||||
|
|
|
@ -12,7 +12,7 @@ entityDef weapon_gausspistol
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "30"
|
"weight" "30"
|
||||||
"hudSlot" "2"
|
"hudSlotPos" "2"
|
||||||
|
|
||||||
"def_fireInfo" "fireInfo_gausscharge"
|
"def_fireInfo" "fireInfo_gausscharge"
|
||||||
"inv_ammo_gauss" "20"
|
"inv_ammo_gauss" "20"
|
||||||
|
|
|
@ -12,5 +12,5 @@ entityDef weapon_dmlGrenade
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "20"
|
"weight" "20"
|
||||||
"hudSlot" "7"
|
"hudSlotPos" "7"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ entityDef weapon_minigun
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "60"
|
"weight" "60"
|
||||||
"hudSlot" "4"
|
"hudSlotPos" "4"
|
||||||
|
|
||||||
"def_fireInfo" "fireInfo_minigun"
|
"def_fireInfo" "fireInfo_minigun"
|
||||||
"def_altFireInfo" "fireInfo_minigun_spinning"
|
"def_altFireInfo" "fireInfo_minigun_spinning"
|
||||||
|
|
|
@ -12,7 +12,7 @@ entityDef weapon_shotgun
|
||||||
"snd_acquire" "weapon.pickup"
|
"snd_acquire" "weapon.pickup"
|
||||||
"snd_respawn" "item.respawn"
|
"snd_respawn" "item.respawn"
|
||||||
"weight" "50"
|
"weight" "50"
|
||||||
"hudSlot" "3"
|
"hudSlotPos" "3"
|
||||||
"def_fireInfo" "fireInfo_shotgun"
|
"def_fireInfo" "fireInfo_shotgun"
|
||||||
"snd_fire" "weapon_shotgun.fire"
|
"snd_fire" "weapon_shotgun.fire"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue