Add FX_Corpse stuff, damage notifications...
This commit is contained in:
parent
91138ec57b
commit
cb6daba9d4
5 changed files with 6 additions and 12 deletions
|
@ -88,6 +88,7 @@ HUD_Init(void)
|
|||
precache_model("sprites/640_logo.spr");
|
||||
precache_model("sprites/640_suit.spr");
|
||||
precache_model("sprites/640hud7.spr");
|
||||
HUD_DamageNotify_Init();
|
||||
}
|
||||
|
||||
/* handle single/multiple digits */
|
||||
|
@ -394,6 +395,7 @@ HUD_Draw(void)
|
|||
}
|
||||
|
||||
HUD_DrawHealth();
|
||||
HUD_DamageNotify_Draw();
|
||||
HUD_DrawArmor();
|
||||
HUD_DrawFlashlight();
|
||||
HUD_DrawNotify();
|
||||
|
|
|
@ -31,6 +31,7 @@ game_event.qc
|
|||
../../../valve/src/client/viewmodel.qc
|
||||
../../../valve/src/client/view.qc
|
||||
obituary.qc
|
||||
../../../valve/src/client/hud_dmgnotify.qc
|
||||
hud.qc
|
||||
../../../valve/src/client/hud_weaponselect.qc
|
||||
../../../valve/src/client/scoreboard.qc
|
||||
|
|
|
@ -63,18 +63,7 @@ HHDMultiplayerRules::PlayerDeath(base_player pl)
|
|||
|
||||
pl.health = 0;
|
||||
|
||||
/* Let's handle corpses on the clientside */
|
||||
entity corpse = spawn();
|
||||
setorigin(corpse, pl.origin + [0,0,32]);
|
||||
setmodel(corpse, pl.model);
|
||||
setsize(corpse, VEC_HULL_MIN, VEC_HULL_MAX);
|
||||
corpse.movetype = MOVETYPE_TOSS;
|
||||
corpse.solid = SOLID_TRIGGER;
|
||||
corpse.modelindex = pl.modelindex;
|
||||
corpse.frame = ANIM_DIESIMPLE;
|
||||
corpse.angles = pl.angles;
|
||||
corpse.velocity = pl.velocity;
|
||||
corpse.colormap = pl.colormap;
|
||||
FX_Corpse_Spawn(pl, ANIM_DIESIMPLE);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -30,4 +30,5 @@ Game_Worldspawn(void)
|
|||
|
||||
Player_Precache();
|
||||
Weapons_Init();
|
||||
FX_Corpse_Init();
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ pmove.qc
|
|||
../../../valve/src/shared/fx_gibhuman.qc
|
||||
../../../base/src/shared/fx_spark.qc
|
||||
../../../valve/src/shared/fx_impact.qc
|
||||
../../../base/src/shared/fx_corpse.qc
|
||||
fx_lego.qc
|
||||
fx_legopiece.qc
|
||||
fx_soda.qc
|
||||
|
|
Loading…
Reference in a new issue