Merge branch 'master' into Mario/cs_clientcvars
authorMario <mario@smbclan.net>
Sat, 5 Aug 2017 10:03:59 +0000 (20:03 +1000)
committerMario <mario@smbclan.net>
Sat, 5 Aug 2017 10:03:59 +0000 (20:03 +1000)
# Conflicts:
# qcsrc/server/client.qh

18 files changed:
1  2 
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc
qcsrc/common/mutators/mutator/nades/nades.qc
qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc
qcsrc/common/physics/player.qc
qcsrc/common/t_items.qc
qcsrc/server/bot/default/bot.qc
qcsrc/server/client.qc
qcsrc/server/client.qh
qcsrc/server/command/cmd.qc
qcsrc/server/defs.qh
qcsrc/server/g_world.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator/gamemode_ctf.qc
qcsrc/server/mutators/mutator/gamemode_cts.qc
qcsrc/server/mutators/mutator/gamemode_race.qc
qcsrc/server/player.qc
qcsrc/server/weapons/accuracy.qc
qcsrc/server/weapons/tracing.qc

@@@ -175,9 -167,19 +167,19 @@@ void buff_Touch(entity this, entity tou
        if(!IS_PLAYER(toucher))
                return; // incase mutator changed toucher
  
+       if((this.team && DIFF_TEAM(toucher, this))
+       || (STAT(FROZEN, toucher))
+       || (toucher.vehicle)
+       || (time < PS(toucher).buff_shield)
+       )
+       {
+               // can't touch this
+               return;
+       }
        if (toucher.buffs)
        {
 -              if (toucher.cvar_cl_buffs_autoreplace && toucher.buffs != this.buffs)
 +              if (CS(toucher).cvar_cl_buffs_autoreplace && toucher.buffs != this.buffs)
                {
                        int buffid = buff_FirstFromFlags(toucher.buffs).m_id;
                        //Send_Notification(NOTIF_ONE, toucher, MSG_MULTI, ITEM_BUFF_DROP, toucher.buffs);
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -107,37 -107,8 +107,38 @@@ CLASS(Client, Object
      ATTRIB(Client, specialcommand_pos, int, this.specialcommand_pos);
      ATTRIB(Client, hitplotfh, int, this.hitplotfh);
      ATTRIB(Client, clientdata, entity, this.clientdata);
 +    ATTRIB(Client, cmd_floodcount, int, this.cmd_floodcount);
 +    ATTRIB(Client, cmd_floodtime, float, this.cmd_floodtime);
+     ATTRIB(Client, wasplayer, bool, this.wasplayer);
  
 +    // networked cvars
 +
 +    ATTRIB(Client, cvar_cl_allow_uid2name, int, this.cvar_cl_allow_uid2name);
 +    ATTRIB(Client, cvar_cl_allow_uidtracking, int, this.cvar_cl_allow_uidtracking);
 +    ATTRIB(Client, cvar_cl_autotaunt, float, this.cvar_cl_autotaunt);
 +    ATTRIB(Client, cvar_cl_voice_directional, int, this.cvar_cl_voice_directional);
 +    ATTRIB(Client, cvar_cl_voice_directional_taunt_attenuation, float, this.cvar_cl_voice_directional_taunt_attenuation);
 +    ATTRIB(Client, cvar_cl_physics, string, this.cvar_cl_physics);
 +    ATTRIB(Client, cvar_cl_buffs_autoreplace, bool, this.cvar_cl_buffs_autoreplace);
 +    ATTRIB(Client, cvar_cl_nade_type, int, this.cvar_cl_nade_type);
 +    ATTRIB(Client, cvar_cl_pokenade_type, string, this.cvar_cl_pokenade_type);
 +    ATTRIB(Client, cvar_cl_spawn_near_teammate, bool, this.cvar_cl_spawn_near_teammate);
 +    ATTRIB(Client, cvar_cl_gunalign, int, this.cvar_cl_gunalign);
 +    ATTRIB(Client, cvar_cl_handicap, float, this.cvar_cl_handicap);
 +    ATTRIB(Client, cvar_cl_clippedspectating, bool, this.cvar_cl_clippedspectating);
 +    ATTRIB(Client, cvar_cl_autoscreenshot, int, this.cvar_cl_autoscreenshot);
 +    ATTRIB(Client, cvar_cl_jetpack_jump, bool, this.cvar_cl_jetpack_jump);
 +    ATTRIB(Client, cvar_cl_newusekeysupported, bool, this.cvar_cl_newusekeysupported);
 +    ATTRIB(Client, cvar_cl_noantilag, bool, this.cvar_cl_noantilag);
 +    ATTRIB(Client, cvar_cl_movement_track_canjump, bool, this.cvar_cl_movement_track_canjump);
 +    ATTRIB(Client, cvar_cl_weaponimpulsemode, int, this.cvar_cl_weaponimpulsemode);
 +    ATTRIB(Client, cvar_g_xonoticversion, string, this.cvar_g_xonoticversion);
 +    ATTRIB(Client, autoswitch, bool, this.autoswitch);
 +    ATTRIB(Client, cvar_cl_dodging_timeout, float, this.cvar_cl_dodging_timeout);
 +    ATTRIB(Client, cvar_cl_multijump, bool, this.cvar_cl_multijump);
 +    ATTRIB(Client, cvar_cl_accuracy_data_share, bool, this.cvar_cl_accuracy_data_share);
 +    ATTRIB(Client, cvar_cl_accuracy_data_receive, bool, this.cvar_cl_accuracy_data_receive);
 +
      METHOD(Client, m_unwind, bool(Client this));
  
      STATIC_METHOD(Client, Add, void(Client this, int _team));
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge