X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fg_models.qc;h=539522f2dce7f61ca49d840f6040439450916e8c;hb=4d5d98ff5cae4de214e4f8cf53cc8de249de9359;hp=363650ce8c097d9e710d68d0fea885bd4d8f870b;hpb=74cebbb48d9481bb83eccb4438283f319352cb74;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_models.qc b/qcsrc/server/g_models.qc index 363650ce8..539522f2d 100644 --- a/qcsrc/server/g_models.qc +++ b/qcsrc/server/g_models.qc @@ -1,6 +1,9 @@ #include "g_models.qh" +#include +#include #include "g_subs.qh" +#include #include "../common/triggers/subs.qh" #include "../common/triggers/triggers.qh" @@ -98,6 +101,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) { if(sf & 0x40) WriteShort(MSG_ENTITY, this.colormap); + WriteByte(MSG_ENTITY, this.skin); } if(sf & BIT(1)) @@ -152,11 +156,11 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) WriteCoord(MSG_ENTITY, this.movedir.z); WriteByte(MSG_ENTITY, floor(this.lip * 255)); } - WriteShort(MSG_ENTITY, this.fade_start); - WriteShort(MSG_ENTITY, this.fade_end); - WriteShort(MSG_ENTITY, this.alpha_max); - WriteShort(MSG_ENTITY, this.alpha_min); - WriteShort(MSG_ENTITY, this.inactive); + WriteByte(MSG_ENTITY, this.fade_start); + WriteByte(MSG_ENTITY, this.fade_end); + WriteByte(MSG_ENTITY, this.alpha_max); + WriteByte(MSG_ENTITY, this.alpha_min); + WriteByte(MSG_ENTITY, this.inactive); WriteShort(MSG_ENTITY, this.fade_vertical_offset); } @@ -165,17 +169,17 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) #define G_MODEL_INIT(ent,sol) \ - if(ent.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) ent.movetype = MOVETYPE_PHYSICS; \ + if(ent.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) set_movetype(ent, MOVETYPE_PHYSICS); \ if(!ent.scale) ent.scale = ent.modelscale; \ - SetBrushEntityModel(); \ + SetBrushEntityModel(ent); \ ent.use = g_model_setcolormaptoactivator; \ InitializeEntity(ent, g_model_dropbyspawnflags, INITPRIO_DROPTOFLOOR); \ if(!ent.solid) ent.solid = (sol); else if(ent.solid < 0) ent.solid = SOLID_NOT; #define G_CLIENTMODEL_INIT(ent,sol) \ - if(ent.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) ent.movetype = MOVETYPE_PHYSICS; \ + if(ent.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) set_movetype(ent, MOVETYPE_PHYSICS); \ if(!ent.scale) ent.scale = ent.modelscale; \ - SetBrushEntityModel(); \ + SetBrushEntityModel(ent); \ ent.use = g_clientmodel_use; \ InitializeEntity(ent, g_clientmodel_dropbyspawnflags, INITPRIO_DROPTOFLOOR); \ if(!ent.solid) ent.solid = (sol); else if(ent.solid < 0) ent.solid = SOLID_NOT; \