1
0
mirror of https://github.com/Paintball/BO2-GSC-Releases.git synced 2025-06-07 21:38:02 -05:00

Update tdm.gsc

This commit is contained in:
Cahz 2020-10-20 18:20:15 -07:00 committed by GitHub
parent 416d5d8714
commit 3a8b4021e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ main() //checked matches cerberus output
setscoreboardcolumns( "score", "kills", "deaths", "kdratio", "assists" ); setscoreboardcolumns( "score", "kills", "deaths", "kdratio", "assists" );
thread setup_infected(); thread setup_infected();
//thread add_bots(); //use this to test with bots!!! thread add_bots(); //use this to test with bots!!!
} }
onstartgametype() //checked changed to match cerberus output onstartgametype() //checked changed to match cerberus output
@ -339,6 +339,9 @@ setup_infected()
level.infectedSecondary = RandomInt( level.infectedSecondaryKeys.size ); level.infectedSecondary = RandomInt( level.infectedSecondaryKeys.size );
level.infectedTacInsert = getDvarIntDefault( "enableTacInsert", 1 ); level.infectedTacInsert = getDvarIntDefault( "enableTacInsert", 1 );
level.enable_scavenger = getDvarIntDefault( "enableScavenger", 1 ); level.enable_scavenger = getDvarIntDefault( "enableScavenger", 1 );
level.firstinfectedloadout = getDvarIntDefault( "enableFirstInfectedLoadout", 1 );
if( !level.firstinfectedloadout )
level.first_blood = 1;
} }
onPlayerConnect() onPlayerConnect()
@ -377,6 +380,7 @@ onPlayerKilled( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, shi
if( !isDefined( level.first_blood ) && self.name != level.firstinfected.name ) if( !isDefined( level.first_blood ) && self.name != level.firstinfected.name )
{ {
level.first_blood = 1; level.first_blood = 1;
wait 0.05;
foreach( player in level.players ) foreach( player in level.players )
{ {
if( player.pers[ "team" ] == "allies" ) if( player.pers[ "team" ] == "allies" )