Don't set view_ofs here.

This commit is contained in:
Marco Cawthorne 2021-05-16 23:13:52 +02:00
parent 3af0b7247d
commit 3f22159607
2 changed files with 10 additions and 5 deletions

View File

@ -75,7 +75,6 @@ CSEv_TeamJoin_f(float f)
pl.model = g_teammodels[f];
setmodel(pl, pl.model);
setsize(pl, VEC_HULL_MIN, VEC_HULL_MAX);
pl.view_ofs = VEC_PLAYER_VIEWPOS;
pl.velocity = [0,0,0];
pl.gravity = __NULL__;
pl.frame = 1;

View File

@ -55,15 +55,21 @@ w_dbs_updateammo(player pl)
Weapons_UpdateAmmo(pl, pl.shotgun_mag, pl.ammo_shells, __NULL__);
#endif
}
string w_dbs_wmodel(void)
string
w_dbs_wmodel(void)
{
return "models/w_shot2.mdl";
}
string w_dbs_pmodel(void)
string
w_dbs_pmodel(void)
{
return "models/p_shot2.mdl";
}
string w_dbs_deathmsg(void)
string
w_dbs_deathmsg(void)
{
return "";
}
@ -252,7 +258,7 @@ w_dbs_hudpic(int s, vector pos, float a)
weapon_t w_dbs =
{
.name = "sbs",
.id = ITEM_DBS,
.id = ITEM_DBS,
.slot = 2,
.slot_pos = 1,
.draw = w_dbs_draw,