fast ac130

This commit is contained in:
INeedBots 2021-01-12 14:28:00 -06:00
parent 433b9e787f
commit 6c28abdbaa
6 changed files with 19 additions and 1 deletions

View File

@ -642,6 +642,7 @@ set scr_airdrop_patchDupeGlitch "0"
// _ac130 // _ac130
set scr_ac130_duration "30" set scr_ac130_duration "30"
set scr_ac130_flares "1" set scr_ac130_flares "1"
set scr_ac130_fast "1"
// _uav // _uav
set scr_uav_timeout "30" set scr_uav_timeout "30"

View File

@ -642,6 +642,7 @@ set scr_airdrop_patchDupeGlitch "0"
// _ac130 // _ac130
set scr_ac130_duration "30" set scr_ac130_duration "30"
set scr_ac130_flares "1" set scr_ac130_flares "1"
set scr_ac130_fast "1"
// _uav // _uav
set scr_uav_timeout "30" set scr_uav_timeout "30"

View File

@ -642,6 +642,7 @@ set scr_airdrop_patchDupeGlitch "0"
// _ac130 // _ac130
set scr_ac130_duration "30" set scr_ac130_duration "30"
set scr_ac130_flares "1" set scr_ac130_flares "1"
set scr_ac130_fast "1"
// _uav // _uav
set scr_uav_timeout "30" set scr_uav_timeout "30"

View File

@ -1114,6 +1114,9 @@ setKillstreaks( streak1, streak2, streak3 )
// defcon rollover // defcon rollover
maxRollOvers = 10; maxRollOvers = 10;
if (isDefined(level.maxKillstreakRollover))
maxRollOvers = level.maxKillstreakRollover;
newKillstreaks = self.killstreaks; newKillstreaks = self.killstreaks;
for ( rollOver = 1; rollOver <= maxRollOvers; rollOver++ ) for ( rollOver = 1; rollOver <= maxRollOvers; rollOver++ )
{ {

View File

@ -10,6 +10,9 @@
- scr_ac130_flares <int> - scr_ac130_flares <int>
2 - (default) how many flares a ac130 has 2 - (default) how many flares a ac130 has
- scr_ac130_fast <bool>
0 - (default) if to allow users to use ac130 faster
Thanks: H3X1C, Emosewaj Thanks: H3X1C, Emosewaj
*/ */
@ -22,8 +25,10 @@ init()
setDvarIfUninitialized( "scr_ac130_duration", 40 ); setDvarIfUninitialized( "scr_ac130_duration", 40 );
setDvarIfUninitialized( "scr_ac130_flares", 2 ); setDvarIfUninitialized( "scr_ac130_flares", 2 );
setDvarIfUninitialized( "scr_ac130_fast", false );
level.ac130_use_duration = getDvarInt( "scr_ac130_duration" ); level.ac130_use_duration = getDvarInt( "scr_ac130_duration" );
level.ac130_num_flares= getDvarInt( "scr_ac130_flares" ); level.ac130_num_flares= getDvarInt( "scr_ac130_flares" );
level.ac130_fast= getDvarInt( "scr_ac130_fast" );
makeDvarServerInfo( "ui_ac130usetime", level.ac130_use_duration ); makeDvarServerInfo( "ui_ac130usetime", level.ac130_use_duration );
@ -661,6 +666,9 @@ removeAC130Player( player, disconnected )
return; return;
} }
if (level.ac130_fast)
level.ac130InUse = false;
ac130model = spawn( "script_model", level.ac130.planeModel getTagOrigin( "tag_origin" ) ); ac130model = spawn( "script_model", level.ac130.planeModel getTagOrigin( "tag_origin" ) );
ac130model.angles = level.ac130.planeModel.angles; ac130model.angles = level.ac130.planeModel.angles;
ac130model setModel( "vehicle_ac130_coop" ); ac130model setModel( "vehicle_ac130_coop" );
@ -676,6 +684,7 @@ removeAC130Player( player, disconnected )
wait ( 5.0 ); wait ( 5.0 );
ac130model thread deployFlares( true ); ac130model thread deployFlares( true );
if (!level.ac130_fast)
level.ac130InUse = false; level.ac130InUse = false;
wait ( 30.0 ); wait ( 30.0 );

View File

@ -13,6 +13,9 @@
- scr_maxKillstreakRollover <int> - scr_maxKillstreakRollover <int>
10 - (default) allow to rollover killstreaks <int> times. (remember you are limited to 10 rollovers as defined in _class.gsc) 10 - (default) allow to rollover killstreaks <int> times. (remember you are limited to 10 rollovers as defined in _class.gsc)
- scr_currentRolloverKillstreaksOnlyIncrease <bool>
0 - (default) if only killstreaks from their current rollover will increase streak
- scr_killstreak_mod <int> - scr_killstreak_mod <int>
0 - (default) offsets all killstreaks reward costs by <int> amount 0 - (default) offsets all killstreaks reward costs by <int> amount