X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Fmodels.qc;h=9ba1dcdf66943dffddf543d055357ab97aa0f685;hb=aafb3956d4321d56a6c34ccb1796b8bf6fa89458;hp=18d033663eaff85541fadfffe49dcbf849370484;hpb=729f7cf812441720792d8a0e3444f3c3828368b6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/models.qc b/qcsrc/common/mapobjects/models.qc index 18d033663..9ba1dcdf6 100644 --- a/qcsrc/common/mapobjects/models.qc +++ b/qcsrc/common/mapobjects/models.qc @@ -1,23 +1,15 @@ #include "models.qh" #ifdef SVQC -#include -#include +#include +#include #include #include "subs.qh" #include "triggers.qh" - -entityclass(BGMScript); -classfield(BGMScript) .string bgmscript; -classfield(BGMScript) .float bgmscriptattack; -classfield(BGMScript) .float bgmscriptdecay; -classfield(BGMScript) .float bgmscriptsustain; -classfield(BGMScript) .float bgmscriptrelease; +#include "bgmscript.qh" #include -#include "../../lib/csqcmodel/sv_model.qh" - -.float modelscale; +#include void g_model_setcolormaptoactivator(entity this, entity actor, entity trigger) { @@ -117,11 +109,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) if(sf & BIT(2)) { if(sf & 0x10) - { - WriteAngle(MSG_ENTITY, this.angles.x); - WriteAngle(MSG_ENTITY, this.angles.y); - WriteAngle(MSG_ENTITY, this.angles.z); - } + WriteAngleVector(MSG_ENTITY, this.angles); } if(sf & BIT(3)) @@ -195,11 +183,11 @@ spawnfunc(misc_models) { this.angles_x = -this.angles.x; G_MODEL_INIT // non-solid brush entities: spawnfunc(func_illusionary) { G_MODEL_INIT (this, SOLID_NOT) } // Q1 name (WARNING: MISPREDICTED) spawnfunc(func_clientillusionary) { G_CLIENTMODEL_INIT(this, SOLID_NOT) } // brush entity -spawnfunc(func_static) { G_MODEL_INIT (this, SOLID_NOT) } // DEPRECATED old alias name from some other game // solid brush entities spawnfunc(func_wall) { G_MODEL_INIT (this, SOLID_BSP) } // Q1 name spawnfunc(func_clientwall) { G_CLIENTMODEL_INIT(this, SOLID_BSP) } // brush entity (WARNING: MISPREDICTED) +spawnfunc(func_static) { G_MODEL_INIT (this, SOLID_BSP) } // DEPRECATED old alias name from some other game #elif defined(CSQC) .float alpha; .float scale; @@ -342,11 +330,7 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew) if(f & 4) { if(f & 0x10) - { - this.angles_x = ReadAngle(); - this.angles_y = ReadAngle(); - this.angles_z = ReadAngle(); - } + this.angles = ReadAngleVector(); else this.angles = '0 0 0'; }