Bug 2783 - Lcannon ammo conservation exploit
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Linux
: P2 normal
Assignee: Tremulous Bugs
QA Contact:
URL:
Depends on: 2758
Blocks:
 
Reported: 2006-07-15 18:19 EDT by Norfenstein
Modified: 2007-09-16 17:38:56 EDT
1 user (show)

See Also:



Description Norfenstein 2006-07-15 18:19:31 EDT
The lcannon secondary attack can be used while the primary is charged up, effectively cancelling the charge and preserving a significant amount of ammo.
Comment 1 Tony J. White 2006-07-16 17:05:38 EDT
patch for this would conflict with the pending patch for bug 2758
Comment 2 M. Kristall 2006-12-11 17:13:43 EST
This is not the best option, but if LCChargeFire is called with secondary and check ps.stats[ STAT_MISC ] is greater than 0, LCChargeFire could return without doing anything. Something like this
Index: src/game/g_weapon.c
===================================================================
--- src/game/g_weapon.c	(revision 868)
+++ src/game/g_weapon.c	(working copy)
@@ -607,6 +607,6 @@
 
   if( secondary )
   {
+    if( ent->client->ps.stats[ STAT_MISC] > 0 )
+      return;
     m = fire_luciferCannon( ent, muzzle, forward, LCANNON_SECONDARY_DAMAGE,
       LCANNON_SECONDARY_RADIUS );
     ent->client->ps.weaponTime = LCANNON_REPEAT;
Comment 3 Tim Angus 2007-09-16 17:38:56 EDT
Fixed in r997.