GS-EntBase: Move prop_static fully to the client-side.

This commit is contained in:
Marco Cawthorne 2022-02-04 10:52:37 -08:00
parent c4a5070027
commit 82e1f2e044
Signed by: eukara
GPG key ID: C196CD8BA993248A
3 changed files with 49 additions and 1 deletions

View file

@ -23,4 +23,5 @@ client/sky_camera.qc
client/info_notnull.qc
client/point_message.qc
client/prop_rope.qc
client/prop_static.qc
#endlist

View file

@ -0,0 +1,48 @@
/*
* Copyright (c) 2016-2022 Vera Visions L.L.C.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
class
prop_static:NSEntity
{
void(void) prop_static;
virtual void(string, string) SpawnKey;
};
void
prop_static::SpawnKey(string strKey, string strValue)
{
switch (strKey) {
case "modelscale":
scale = stof(strValue);
break;
default:
super::SpawnKey(strKey, strValue);
}
}
void
prop_static::prop_static(void)
{
drawmask = MASK_ENGINE;
Init();
solid = SOLID_NOT;
setmodel(this, model);
setorigin(this, origin);
setsize(this, mins * scale, maxs * scale);
makestatic(this);
}

View file

@ -62,7 +62,6 @@ server/player_weaponstrip.qc
server/player_loadsaved.qc
server/prop_physics.qc
server/prop_dynamic.qc
server/prop_static.qc
server/point_camera.qc
server/targ_speaker.qc
server/target_cdaudio.qc