mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-23 06:15:43 +00:00
post death delay
This commit is contained in:
parent
f48acb4b53
commit
b697c9e20d
@ -563,6 +563,7 @@ set scr_voting_bots "0"
|
|||||||
set scr_nuke_increases_streak "0"
|
set scr_nuke_increases_streak "0"
|
||||||
set headshot_detach_head "1"
|
set headshot_detach_head "1"
|
||||||
set scr_killstreaks_increase_killstreak "1"
|
set scr_killstreaks_increase_killstreak "1"
|
||||||
|
set scr_postDeathDelayMod "1.0"
|
||||||
|
|
||||||
// _weapon
|
// _weapon
|
||||||
set scr_allowDropWeaponOnCommand "1"
|
set scr_allowDropWeaponOnCommand "1"
|
||||||
@ -581,8 +582,8 @@ set scr_killstreak_rollover "1"
|
|||||||
set scr_killstreakHud "1"
|
set scr_killstreakHud "1"
|
||||||
set scr_maxKillstreakRollover "1"
|
set scr_maxKillstreakRollover "1"
|
||||||
set scr_killstreak_mod "0"
|
set scr_killstreak_mod "0"
|
||||||
set scr_specialist "1"
|
|
||||||
set scr_killstreak_print "1"
|
set scr_killstreak_print "1"
|
||||||
|
set scr_specialist "1"
|
||||||
//set scr_specialist_killCount_ "4"
|
//set scr_specialist_killCount_ "4"
|
||||||
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
||||||
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
||||||
|
@ -563,6 +563,7 @@ set scr_voting_bots "0"
|
|||||||
set scr_nuke_increases_streak "0"
|
set scr_nuke_increases_streak "0"
|
||||||
set headshot_detach_head "1"
|
set headshot_detach_head "1"
|
||||||
set scr_killstreaks_increase_killstreak "1"
|
set scr_killstreaks_increase_killstreak "1"
|
||||||
|
set scr_postDeathDelayMod "1.0"
|
||||||
|
|
||||||
// _weapon
|
// _weapon
|
||||||
set scr_allowDropWeaponOnCommand "1"
|
set scr_allowDropWeaponOnCommand "1"
|
||||||
@ -581,8 +582,8 @@ set scr_killstreak_rollover "1"
|
|||||||
set scr_killstreakHud "1"
|
set scr_killstreakHud "1"
|
||||||
set scr_maxKillstreakRollover "1"
|
set scr_maxKillstreakRollover "1"
|
||||||
set scr_killstreak_mod "0"
|
set scr_killstreak_mod "0"
|
||||||
set scr_specialist "1"
|
|
||||||
set scr_killstreak_print "1"
|
set scr_killstreak_print "1"
|
||||||
|
set scr_specialist "1"
|
||||||
//set scr_specialist_killCount_ "4"
|
//set scr_specialist_killCount_ "4"
|
||||||
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
||||||
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
||||||
|
@ -563,6 +563,7 @@ set scr_voting_bots "0"
|
|||||||
set scr_nuke_increases_streak "0"
|
set scr_nuke_increases_streak "0"
|
||||||
set headshot_detach_head "1"
|
set headshot_detach_head "1"
|
||||||
set scr_killstreaks_increase_killstreak "1"
|
set scr_killstreaks_increase_killstreak "1"
|
||||||
|
set scr_postDeathDelayMod "1.0"
|
||||||
|
|
||||||
// _weapon
|
// _weapon
|
||||||
set scr_allowDropWeaponOnCommand "1"
|
set scr_allowDropWeaponOnCommand "1"
|
||||||
@ -581,8 +582,8 @@ set scr_killstreak_rollover "1"
|
|||||||
set scr_killstreakHud "1"
|
set scr_killstreakHud "1"
|
||||||
set scr_maxKillstreakRollover "1"
|
set scr_maxKillstreakRollover "1"
|
||||||
set scr_killstreak_mod "0"
|
set scr_killstreak_mod "0"
|
||||||
set scr_specialist "1"
|
|
||||||
set scr_killstreak_print "1"
|
set scr_killstreak_print "1"
|
||||||
|
set scr_specialist "1"
|
||||||
//set scr_specialist_killCount_ "4"
|
//set scr_specialist_killCount_ "4"
|
||||||
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
set scr_specialist_perks1 "specialty_scavenger,specialty_fastreload,specialty_marathon"
|
||||||
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
set scr_specialist_perks2 "specialty_bulletdamage,specialty_lightweight,specialty_coldblooded,specialty_explosivedamage,specialty_hardline"
|
||||||
|
@ -778,9 +778,9 @@ PlayerKilled_internal( eInflictor, attacker, victim, iDamage, sMeansOfDeath, sWe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// let the player watch themselves die
|
// let the player watch themselves die
|
||||||
wait( 0.25 );
|
wait( 0.25 * level.postDeathDelayMod );
|
||||||
victim thread maps\mp\gametypes\_killcam::cancelKillCamOnUse();
|
victim thread maps\mp\gametypes\_killcam::cancelKillCamOnUse();
|
||||||
wait( 0.25 );
|
wait( 0.25 * level.postDeathDelayMod );
|
||||||
|
|
||||||
self.respawnTimerStartTime = gettime() + 1000;
|
self.respawnTimerStartTime = gettime() + 1000;
|
||||||
timeUntilSpawn = maps\mp\gametypes\_playerlogic::TimeUntilSpawn( true );
|
timeUntilSpawn = maps\mp\gametypes\_playerlogic::TimeUntilSpawn( true );
|
||||||
@ -788,7 +788,7 @@ PlayerKilled_internal( eInflictor, attacker, victim, iDamage, sMeansOfDeath, sWe
|
|||||||
timeUntilSpawn = 1;
|
timeUntilSpawn = 1;
|
||||||
victim thread maps\mp\gametypes\_playerlogic::predictAboutToSpawnPlayerOverTime( timeUntilSpawn );
|
victim thread maps\mp\gametypes\_playerlogic::predictAboutToSpawnPlayerOverTime( timeUntilSpawn );
|
||||||
|
|
||||||
wait( 1.0 );
|
wait( 1.0 * level.postDeathDelayMod );
|
||||||
victim notify( "death_delay_finished" );
|
victim notify( "death_delay_finished" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@
|
|||||||
- headshot_detach_head <bool>
|
- headshot_detach_head <bool>
|
||||||
false - (default) headshots dismember the victim's head
|
false - (default) headshots dismember the victim's head
|
||||||
|
|
||||||
|
- scr_postDeathDelayMod <float>
|
||||||
|
1.0 - (default) Multiplier of how long to wait after death (watching your dead body before the killcam starts)
|
||||||
|
|
||||||
Thanks: banz, 23Furious
|
Thanks: banz, 23Furious
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -1392,6 +1395,7 @@ Callback_StartGameType()
|
|||||||
setDvarIfUninitialized( "scr_nuke_increases_streak", true );
|
setDvarIfUninitialized( "scr_nuke_increases_streak", true );
|
||||||
setDvarIfUninitialized( "headshot_detach_head", false );
|
setDvarIfUninitialized( "headshot_detach_head", false );
|
||||||
setDvarIfUninitialized( "scr_killstreaks_increase_killstreak", true );
|
setDvarIfUninitialized( "scr_killstreaks_increase_killstreak", true );
|
||||||
|
setDvarIfUninitialized( "scr_postDeathDelayMod", 1.0 );
|
||||||
|
|
||||||
level.extraDamageFeedback = getDvarInt("scr_extraDamageFeedback");
|
level.extraDamageFeedback = getDvarInt("scr_extraDamageFeedback");
|
||||||
level.allowPrintDamage = getDvarInt("scr_printDamage");
|
level.allowPrintDamage = getDvarInt("scr_printDamage");
|
||||||
@ -1411,6 +1415,7 @@ Callback_StartGameType()
|
|||||||
level.headShotDetachHead = getDvarInt("headshot_detach_head");
|
level.headShotDetachHead = getDvarInt("headshot_detach_head");
|
||||||
level.nukeIncreasesStreak = getDvarInt( "scr_nuke_increases_streak" );
|
level.nukeIncreasesStreak = getDvarInt( "scr_nuke_increases_streak" );
|
||||||
level.killstreaksIncreaseKillstreak = getDvarInt( "scr_killstreaks_increase_killstreak" );
|
level.killstreaksIncreaseKillstreak = getDvarInt( "scr_killstreaks_increase_killstreak" );
|
||||||
|
level.postDeathDelayMod = getDvarFloat("scr_postDeathDelayMod");
|
||||||
|
|
||||||
if ( level.voting )
|
if ( level.voting )
|
||||||
level.votingMapsTok = randomizeMaps();
|
level.votingMapsTok = randomizeMaps();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user