]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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
index 26797c55a1459fd67fe9599f97158d3707a4f7e4,26797c55a1459fd67fe9599f97158d3707a4f7e4,3f58e672cbb83f67c7e8ab4a929123fcfb7787fd..143f53249b43f3b79f5e9a7cb323e6237ffac117
@@@@ -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
index 1cec08e9691fb0cc7fb1f611bf11cd5e14965cb2,32ae555e41b47ca97f8419078e819943b441b97a,112b6524eade596d0601257b7507cd508a4ca006..f9a4928b745b484f7651054a41f7ba37dadb5d59
@@@@ -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
index 56a89fd9dcf77f3bca61f0669a077d4edec2c51a,92629a0bd7116a5f40c5c0e5d059914d0089749c,24a0db83f44534a4c7ff3cfbd453851b86796621..f320f711469cfb75a72daaa424bf262cafa54388
@@@@ -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
index 95195bd3ac632456e10a394be8c24d0b85f4a27c,1d91689e505e3310bbd4bf8a9c6919c668349377,5415b4a6f0726d57b20ea393e1683efb704eedb0..d93e9dd3f9fd1627685e370801cb10f72e6b303e
@@@@ -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
index 3e3682400bd2669a167fcc211ecd737ed9a222c7,f40acfd63b548ea24e354cabf6f0ed0ed0426a9f,de29c9a25ead17663da538b39ab8e6f25f03e024..dcfc19eb17e3d9440a8f84638795bdfd234d3ed1
@@@@ -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
index f5e3fa8bdceab5e0869cc97fb8bafd632464e4f5,0f483abaf89aabd0f93956068403699008d33d97,b582e168604c9626b579258e19810c245144bd66..f144899c8d86a1da4d761cb34309f0c2f1f30ffd
@@@@ -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