Bug 2816 - r_stageKillBuild bonus implementation
Status: RESOLVED WONTFIX
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Linux
: P2 enhancement
Assignee: Tim Angus
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2006-08-01 20:09 EDT by Phil Bordelon
Modified: 2006-12-29 18:38:50 EST
0 users

See Also:


Attachments
New stageKillBuild support. (1.84 KB, patch)
2006-08-01 20:10 EDT, Phil Bordelon

Description Phil Bordelon 2006-08-01 20:09:10 EDT
This patch implements a new feature that gives build points for kills that count towards the stage increases.

There are two new cvars, g_stageKillOurBuildMult and g_stageKillTheirBuildMult, both of which default to 0 (which turns them off).

For every stage kill, the team that gets the kill gets an additional g_stageKillOurBuildMult build points, and the other team gets an additional g_stageKillTheirBuildMult build points.  These should generally be fractional amounts (say, 0.5 for Our and 0.25 for Their), but can be set to integer values.  The numbers are rounded down automagically by C.
Comment 1 Phil Bordelon 2006-08-01 20:10:04 EDT
Created attachment 1004 [details]
New stageKillBuild support.

This implements the above functionality.  Note that, like all of my other functionality-change patches, it defaults to being off.
Comment 2 Phil Bordelon 2006-08-01 20:13:22 EDT
I should note that this patch also does some minor cleanup in the function it's implemented in; there were some redundant assignments which are no longer done.
Comment 3 Phil Bordelon 2006-08-01 23:21:52 EDT
For server admins who may want to use this patch, after some testing on Arcadia, an Our setting of 0.25 and a Their setting of 0.125 seems to hit a nice balance of giving bonuses without it becoming a buildfest.  The atmosphere and play style on your server may require tweaks, of course.