* Added bugfixes for builder, now much more useful command. (See Issue 64)
* Added extreme mod * `g_modBuildableHealth`: Buildable health *(Percent)* * `g_modBuildableSpeed`: Buildable fire rate *(Percent)* * `g_modHumanStamina`: Human stamina *(Percent)* * `g_modHumanHealth`: Human health *(Percent)* * `g_modAlienHealth`: Alien health *(Percent)* * `g_modHumanRate`: Human fire rate *(Percent)* * `g_modAlienRate`: Alien fire rate *(Percent)* * `g_modWeaponAmmo`: Weapon ammo per clip *(Percent)* * `g_modWeaponReload`: Adjust's Weapon reload time *(Percent)* Wiki updated as well. This matches release 1.5.0.4
This commit is contained in:
1 parent
56a06e3ff0
commit
9a5647df1d
9 files changed
+253
-21
No files matched your search
+11
-2
@@ -531,6 +531,8 @@ void ClientTimerActions( gentity_t *ent, int msec )
|
||||
usercmd_t *ucmd;
|
||||
int aForward, aRight;
|
||||
int foundTurrets = 0;
|
||||
int staminaLarmour = STAMINA_LARMOUR_TAKE;
|
||||
int staminaSprint = STAMINA_SPRINT_TAKE;
|
||||
|
||||
ucmd = &ent->client->pers.cmd;
|
||||
|
||||
@@ -542,6 +544,13 @@ void ClientTimerActions( gentity_t *ent, int msec )
|
||||
client->time1000 += msec;
|
||||
client->time10000 += msec;
|
||||
|
||||
if( ( client->ps.stats[ STAT_STATE ] & SS_SPEEDBOOST ) &&
|
||||
g_modHumanStamina.integer > 0 )
|
||||
{
|
||||
staminaLarmour = staminaLarmour * 100 / g_modHumanStamina.integer;
|
||||
staminaSprint = staminaSprint * 100 / g_modHumanStamina.integer;
|
||||
}
|
||||
|
||||
while ( client->time100 >= 100 )
|
||||
{
|
||||
client->time100 -= 100;
|
||||
@@ -557,9 +566,9 @@ void ClientTimerActions( gentity_t *ent, int msec )
|
||||
{
|
||||
//subtract stamina
|
||||
if( BG_InventoryContainsUpgrade( UP_LIGHTARMOUR, client->ps.stats ) )
|
||||
client->ps.stats[ STAT_STAMINA ] -= STAMINA_LARMOUR_TAKE;
|
||||
client->ps.stats[ STAT_STAMINA ] -= staminaLarmour;
|
||||
else
|
||||
client->ps.stats[ STAT_STAMINA ] -= STAMINA_SPRINT_TAKE;
|
||||
client->ps.stats[ STAT_STAMINA ] -= staminaSprint;
|
||||
|
||||
if( client->ps.stats[ STAT_STAMINA ] < -MAX_STAMINA )
|
||||
client->ps.stats[ STAT_STAMINA ] = -MAX_STAMINA;
|
||||
|
||||
Reference in new issue
Block a user