Server: Ensure r_meshpitch gets set to 1 on init.
This commit is contained in:
parent
fa4f77aae0
commit
4b69949385
4 changed files with 16 additions and 4 deletions
|
@ -263,6 +263,7 @@ SV_RunClientCommand(void)
|
|||
return;
|
||||
|
||||
CheatersLament((NSClientPlayer)cl, input_angles, input_buttons, input_timelength);
|
||||
self.v_angle = input_angles;
|
||||
|
||||
if (!Plugin_RunClientCommand()) {
|
||||
/* TODO */
|
||||
|
@ -357,6 +358,9 @@ init(float prevprogs)
|
|||
PropData_Init();
|
||||
SurfData_Init();
|
||||
DecalGroups_Init();
|
||||
|
||||
/* DO NOT EVER CHANGE THESE. */
|
||||
cvar_set("r_meshpitch", "1");
|
||||
}
|
||||
|
||||
/** Called inside initents() to make sure the entities have their Respawn()
|
||||
|
|
|
@ -140,6 +140,8 @@ public:
|
|||
nonvirtual vector GetEyePos(void);
|
||||
/** Sets the relative position of the eyes. */
|
||||
nonvirtual void SetEyePos(vector);
|
||||
/** Returns an euler angle of where the entity is 'looking' at. These are not necessarily eye values. */
|
||||
nonvirtual vector GetViewAngle(void);
|
||||
|
||||
private:
|
||||
float m_flBurnNext;
|
||||
|
|
|
@ -43,6 +43,12 @@ NSSurfacePropEntity::GetEyePos(void)
|
|||
return origin + view_ofs;
|
||||
}
|
||||
|
||||
vector
|
||||
NSSurfacePropEntity::GetViewAngle(void)
|
||||
{
|
||||
return v_angle;
|
||||
}
|
||||
|
||||
void
|
||||
NSSurfacePropEntity::SetEyePos(vector value)
|
||||
{
|
||||
|
|
|
@ -285,9 +285,9 @@ PropData_ForModel(string modelname)
|
|||
index = g_propdata_count;
|
||||
modelname = strtolower(modelname);
|
||||
|
||||
print("[PROPDATA] Loading model propdata ");
|
||||
print(modelname);
|
||||
print("\n");
|
||||
//print("[PROPDATA] Loading model propdata ");
|
||||
//print(modelname);
|
||||
//print("\n");
|
||||
|
||||
/* create the hash-table if it doesn't exist */
|
||||
if (!g_hashpropdata) {
|
||||
|
@ -763,7 +763,7 @@ BreakModel_SpawnID(vector smins, vector smaxs, vector dir, float speed, int coun
|
|||
|
||||
gib.ScheduleThink(NSEntity::Destroy, fadetime);
|
||||
gib.SetImpactDecal(impactDecal);
|
||||
print(sprintf("%S\n", mname));
|
||||
//print(sprintf("%S\n", mname));
|
||||
|
||||
#ifdef CLIENT
|
||||
gib.drawmask = MASK_ENGINE;
|
||||
|
|
Loading…
Reference in a new issue