]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a major bug causing darkplaces to crash during the campaign (and possibly other...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 18 Mar 2012 13:26:10 +0000 (15:26 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 18 Mar 2012 13:26:10 +0000 (15:26 +0200)
data/qcsrc/server/t_items.qc
data/qcsrc/server/vore.qc

index b363e337db46d4dde6badfb0c9b66e3b5b04b126..0c02da266aaa98c3271005403f4a92f36a0d8545 100644 (file)
@@ -407,7 +407,7 @@ void Item_DroppedConsumable_Spawn(entity e)
        item.angles_y = e.predator.angles_y;\r
        makevectors(e.predator.v_angle);\r
        item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force") * scalediff;\r
-       e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff;\r
+       e.predator.velocity = e.predator.velocity + (-v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff); // don't use += here to avoid a fteqcc bug\r
        item.touch = Item_DroppedConsumable_Touch;\r
        item.cnt = time + 1; // 1 second delay\r
        SUB_SetFade(item, time + 20, 1);\r
index 79fcc21027812af88dee898196445e74001c3c45..b88e2802d1d5724ec84fe6e2f1f8a50a4011507b 100644 (file)
@@ -409,7 +409,7 @@ void Vore_Regurgitate(entity e)
        // apply velocities\r
        makevectors(e.predator.v_angle);\r
        e.velocity = v_forward * cvar("g_balance_vore_regurgitate_force") * scalediff;\r
-       e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff;\r
+       e.predator.velocity = e.predator.velocity + (-v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff); // don't use += here to avoid a fteqcc bug\r
        e.pusher = e.predator; // allows us to frag players by regurgitating them in deadly pits\r
        e.pushltime = time + cvar("g_maxpushtime");\r
 \r