- make use of HLWeaponSelect

This commit is contained in:
Marco Cawthorne 2024-08-14 18:16:47 -07:00
parent ab6472f5be
commit 4927cf5157
Signed by: eukara
GPG key ID: CE2032F0A2882A22
12 changed files with 17 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"
} }

View file

@ -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"

View file

@ -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"

View file

@ -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"
} }

View file

@ -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"

View file

@ -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"