Merge branches 'TimePath/weaponsys' and 'Mario/modpack'
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 21 Aug 2015 06:47:39 +0000 (16:47 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 21 Aug 2015 06:47:39 +0000 (16:47 +1000)
45 files changed:
1  2  3 
qcsrc/Makefile
qcsrc/client/main.qc
qcsrc/client/progs.src
qcsrc/common/monsters/monster/shambler.qc
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/physics.qc
qcsrc/common/weapons/all.qc
qcsrc/common/weapons/w_arc.qc
qcsrc/common/weapons/w_blaster.qc
qcsrc/common/weapons/w_crylink.qc
qcsrc/common/weapons/w_devastator.qc
qcsrc/common/weapons/w_electro.qc
qcsrc/common/weapons/w_fireball.qc
qcsrc/common/weapons/w_hagar.qc
qcsrc/common/weapons/w_hlac.qc
qcsrc/common/weapons/w_hmg.qc
qcsrc/common/weapons/w_hook.qc
qcsrc/common/weapons/w_machinegun.qc
qcsrc/common/weapons/w_minelayer.qc
qcsrc/common/weapons/w_mortar.qc
qcsrc/common/weapons/w_porto.qc
qcsrc/common/weapons/w_rifle.qc
qcsrc/common/weapons/w_rpc.qc
qcsrc/common/weapons/w_seeker.qc
qcsrc/common/weapons/w_shockwave.qc
qcsrc/common/weapons/w_shotgun.qc
qcsrc/common/weapons/w_tuba.qc
qcsrc/common/weapons/w_vaporizer.qc
qcsrc/menu/menu.qc
qcsrc/server/cl_client.qc
qcsrc/server/cl_player.qc
qcsrc/server/g_damage.qc
qcsrc/server/g_hook.qc
qcsrc/server/g_world.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/miscfunctions.qh
qcsrc/server/mutators/gamemode_nexball.qc
qcsrc/server/mutators/mutator_buffs.qc
qcsrc/server/mutators/mutator_instagib.qc
qcsrc/server/mutators/mutator_nades.qc
qcsrc/server/mutators/mutator_nix.qc
qcsrc/server/mutators/mutator_overkill.qc
qcsrc/server/progs.src
qcsrc/server/vehicles/vehicle.qc
qcsrc/server/weapons/weaponsystem.qc

diff --cc qcsrc/Makefile
@@@@ -13,7 -13,7 -13,7 +13,7 @@@@ QCCFLAGS ?= 
        -std=gmqcc \
        -O3 -flno \
        -Werror -fno-bail-on-werror -Wall \
--      -fftepp -fftepp-predefs -Wcpp -futf8 -frelaxed-switch \
  -     -fftepp -fftepp-predefs -Wcpp -futf8 -freturn-assignments \
+++     -fftepp -fftepp-predefs -Wcpp -futf8 -frelaxed-switch -freturn-assignments \
        $(QCCFLAGS_WTFS) \
        $(QCCFLAGS_FEATURES) \
        $(QCCFLAGS_EXTRA) $(QCCFLAGS_WATERMARK)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@@ -96,10 -97,10 -96,10 +97,10 @@@@ void W_Fireball_Explode(void
                        dir = normalize(e.origin + e.view_ofs - self.origin);
   
                        if(accuracy_isgooddamage(self.realowner, e))
- -                             accuracy_add(self.realowner, WEP_FIREBALL, 0, WEP_CVAR_PRI(fireball, bfgdamage) * points);
+ +                             accuracy_add(self.realowner, WEP_FIREBALL.m_id, 0, WEP_CVAR_PRI(fireball, bfgdamage) * points);
   
                        Damage(e, self, self.realowner, WEP_CVAR_PRI(fireball, bfgdamage) * points, self.projectiledeathtype | HITTYPE_BOUNCE | HITTYPE_SPLASH, e.origin + e.view_ofs, WEP_CVAR_PRI(fireball, bfgforce) * dir);
 --                     pointparticles(particleeffectnum("fireball_bfgdamage"), e.origin, -1 * dir, 1);
 ++                     Send_Effect("fireball_bfgdamage", e.origin, -1 * dir, 1);
                }
        }
   
Simple merge
Simple merge
Simple merge
Simple merge
@@@@ -212,9 -213,9 -212,9 +213,9 @@@@ void W_MachineGun_Attack_Burst(void
                self.punchangle_y = random() - 0.5;
        }
   
- -     fireBullet(w_shotorg, w_shotdir, WEP_CVAR(machinegun, burst_speed), WEP_CVAR(machinegun, solidpenetration), WEP_CVAR(machinegun, sustained_damage), WEP_CVAR(machinegun, sustained_force), WEP_MACHINEGUN, 0);
+ +     fireBullet(w_shotorg, w_shotdir, WEP_CVAR(machinegun, burst_speed), WEP_CVAR(machinegun, solidpenetration), WEP_CVAR(machinegun, sustained_damage), WEP_CVAR(machinegun, sustained_force), WEP_MACHINEGUN.m_id, 0);
   
 --     pointparticles(particleeffectnum("uzi_muzzleflash"), w_shotorg, w_shotdir * 1000, 1);
 ++     Send_Effect("uzi_muzzleflash", w_shotorg, w_shotdir * 1000, 1);
   
        W_MachineGun_MuzzleFlash();
        W_AttachToShotorg(self.muzzle_flash, '5 0 0');
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@@ -62,9 -63,9 -62,9 +63,9 @@@@ void W_Shotgun_Attack(float isprimary
   
        W_SetupShot(self, true, 5, "weapons/shotgun_fire.wav", ((isprimary) ? CH_WEAPON_A : CH_WEAPON_SINGLE), WEP_CVAR_PRI(shotgun, damage) * WEP_CVAR_PRI(shotgun, bullets));
        for(sc = 0;sc < WEP_CVAR_PRI(shotgun, bullets);sc = sc + 1)
- -             fireBullet(w_shotorg, w_shotdir, WEP_CVAR_PRI(shotgun, spread), WEP_CVAR_PRI(shotgun, solidpenetration), WEP_CVAR_PRI(shotgun, damage), WEP_CVAR_PRI(shotgun, force), WEP_SHOTGUN, 0);
+ +             fireBullet(w_shotorg, w_shotdir, WEP_CVAR_PRI(shotgun, spread), WEP_CVAR_PRI(shotgun, solidpenetration), WEP_CVAR_PRI(shotgun, damage), WEP_CVAR_PRI(shotgun, force), WEP_SHOTGUN.m_id, 0);
   
 --     pointparticles(particleeffectnum("shotgun_muzzleflash"), w_shotorg, w_shotdir * 1000, WEP_CVAR_PRI(shotgun, ammo));
 ++     Send_Effect("shotgun_muzzleflash", w_shotorg, w_shotdir * 1000, WEP_CVAR_PRI(shotgun, ammo));
   
        // casing code
        if(autocvar_g_casings >= 1)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@@ -561,10 -560,8 -560,9 +561,9 @@@@ void spawnfunc___init_dedicated_server(
   
        // needs to be done so early because of the constants they create
        static_init();
- -     CALL_ACCUMULATED_FUNCTION(RegisterWeapons);
        CALL_ACCUMULATED_FUNCTION(RegisterNotifications);
        CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes);
 ++     CALL_ACCUMULATED_FUNCTION(RegisterEffects);
   
        MapInfo_Enumerate();
        MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 0);
@@@@ -610,10 -607,8 -608,9 +609,9 @@@@ void spawnfunc_worldspawn (void
   
        // needs to be done so early because of the constants they create
        static_init();
- -     CALL_ACCUMULATED_FUNCTION(RegisterWeapons);
        CALL_ACCUMULATED_FUNCTION(RegisterNotifications);
        CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes);
 ++     CALL_ACCUMULATED_FUNCTION(RegisterEffects);
   
        ServerProgsDB = db_load(strcat("server.db", autocvar_sessionid));
   
Simple merge
Simple merge
@@@@ -493,10 -493,10 -493,10 +493,10 @@@@ MUTATOR_HOOKFUNCTION(buffs_PlayerDamage
        // this... is ridiculous (TODO: fix!)
        if(frag_attacker.buffs & BUFF_VAMPIRE.m_itemid)
        if(!frag_target.vehicle)
- -     if(DEATH_WEAPONOF(frag_deathtype) != WEP_ARC)
+ +     if(DEATH_WEAPONOF(frag_deathtype) != WEP_ARC.m_id)
        if(!ITEM_DAMAGE_NEEDKILL(frag_deathtype))
        if(frag_target.deadflag == DEAD_NO)
 --     if(IS_PLAYER(frag_target) || (frag_target.flags & FL_MONSTER))
 ++     if(IS_PLAYER(frag_target) || IS_MONSTER(frag_target))
        if(frag_attacker != frag_target)
        if(!frag_target.frozen)
        if(frag_target.takedamage)
Simple merge
Simple merge
Simple merge
Simple merge