Skip to content

Commit

Permalink
Uncommon Infected Callout tweaks
Browse files Browse the repository at this point in the history
General:
Callouts for uncommon infected on certain maps will only happen once and will give a unique response. (Already implemented in TLS, this is just resummaried and improved.)
After that, generic callouts will be used with norepeat enforced. This will reset once per chapter.

Jimmy Gibbs callouts will only happen once per map.
Nick/Ellis getting annoyed with calling out MudMen will only happen once per map. (After at least 3 rule executions)
  • Loading branch information
xanaguy committed Apr 19, 2022
1 parent 39ff5aa commit c8180fe
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 47 deletions.
75 changes: 63 additions & 12 deletions root/scripts/talker/coach.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4960,8 +4960,8 @@ Response SurvivorSpottedArmoredC5M1Coach
}
Rule SurvivorSpottedArmoredC5M1Coach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeArmored IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidArmoredWarn ismap_c5m1_waterfront IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidArmoredWarn:1:0"
criteria ConceptPlayerWarnSpecial IsSpecialTypeArmored IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidArmoredWarn ismap_c5m1_waterfront SawFirstArmored IsNotSpeakingWeight0
ApplyContext "SaidArmoredWarn:1:0,SawArmored:++1"
applycontexttoworld
Response SurvivorSpottedArmoredC5M1Coach
}
Expand Down Expand Up @@ -5060,8 +5060,8 @@ Rule SurvivorSpottedCedaCoach

Rule SurvivorSpottedCedaC1M1Coach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeCeda IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidCedaWarn ismap_c1m1_hotel IsNotSpeakingWeight0
ApplyContext "SaidCedaWarn:1:0"
criteria ConceptPlayerWarnSpecial IsSpecialTypeCeda IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidCedaWarn ismap_c1m1_hotel SawFirstHazmat IsNotSpeakingWeight0
ApplyContext "SaidCedaWarn:1:20,SawHazmat:++1"
applycontexttoworld
Response SurvivorSpottedCedaCoach
}
Expand Down Expand Up @@ -5151,7 +5151,7 @@ Response SurvivorSpottedClownCoach
Rule SurvivorSpottedClownCoach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeClown IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidClownWarn IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidClownWarn:1:20,SawClowns:++1"
ApplyContext "SaidClownWarn:1:20"
applycontexttoworld
Response SurvivorSpottedClownCoach
}
Expand Down Expand Up @@ -5181,8 +5181,8 @@ Response SurvivorSpottedFirstClownCoach
}
Rule SurvivorSpottedFirstClownCoach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeClown IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidClownWarn ismap_c2m2 IsNotSpeakingWeight0
ApplyContext "SaidClownWarn:1:0,SawClowns:++1"
criteria ConceptPlayerWarnSpecial IsSpecialTypeClown IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidClownWarn ismap_c2m2 SawFirstClown IsNotSpeakingWeight0
ApplyContext "SaidClownWarn:1:20,SawClowns:++1"
applycontexttoworld
Response SurvivorSpottedFirstClownCoach
}
Expand Down Expand Up @@ -5291,8 +5291,8 @@ Response SurvivorSpottedJimmyCoach
}
Rule SurvivorSpottedJimmyCoach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeJimmy IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidJimmyWarn IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidJimmyWarn:1:3"
criteria ConceptPlayerWarnSpecial IsSpecialTypeJimmy IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated SawJimmyGibbs IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SpottedJimmyGibbs:++1"
applycontexttoworld
Response SurvivorSpottedJimmyCoach
}
Expand Down Expand Up @@ -5375,7 +5375,6 @@ Rule SurvivorSpottedJockeyAlsoC1M2Coach

Response SurvivorSpottedMudmenCoach
{
norepeat
scene "scenes/Coach/SeeMudmen02.vcd" //Shoot the mudmen!
}
Rule SurvivorSpottedMudmenCoach
Expand All @@ -5392,8 +5391,8 @@ Response SurvivorSpottedMudmenC3M2Coach
}
Rule SurvivorSpottedMudmenC3M2Coach
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidMudmenWarn IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidMudmenWarn:1:0,SawMudMen:++1"
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsCoach IsTalk IsTalkCoach IsWorldTalkCoach IsNotIncapacitated IsNotSaidMudmenWarn ismapc3m2_swamp SawFirstMudMen IsNotSpeakingWeight0
ApplyContext "SaidMudmenWarn:1:20,SawMudMen:++1"
applycontexttoworld
Response SurvivorSpottedMudmenC3M2Coach
}
Expand Down Expand Up @@ -6432,6 +6431,21 @@ Rule PlayerHelpIncappedLethargicCoach
Response PlayerHelpIncappedLethargicCoach
}

Rule PlayerHelpIncappedWitchCoach
{
criteria ConceptPlayerHelp IsCoach IsIncapacitated IsWitchPresent IsWitchAggro IsSaidWitchAttacking
ApplyContext "CalledForHelp:1:10"
forceweight 30
Response NoResponse
}

Rule PlayerHelpIncappedWitchCoach
{
criteria ConceptPlayerHelp IsCoach IsIncapacitated IsWitchPresent IsWitchAggro
ApplyContext "CalledForHelp:1:10"
forceweight 30
Response NoResponse
}

//--------------------------------------------------------------------------------------------------------------
// PlayerIncappedResponse
Expand Down Expand Up @@ -11171,6 +11185,43 @@ Rule PlayerIncapacitatedInitialCoach
Response PlayerIncapacitatedInitialCoach
}

Response PlayerIncapacitatedInitialWitchCoach
{
scene "scenes/Coach/HurtCritical01.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical02.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical03.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical04.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical05.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical06.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical07.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
scene "scenes/Coach/HurtCritical08.vcd" then self WitchDowned foo:0 0.5 //[Pain noise - loud major pain]
}
Rule PlayerIncapacitatedInitialWitchCoach
{
criteria ConceptPlayerIncapacitated IsCoach IsWitchPresent IsWitchAggro IsCriticalPain
ApplyContext "TalkCoach:1:2"
Response PlayerIncapacitatedInitialWitchCoach
}

Response WitchDownedCoach
{
scene "scenes/Coach/GrabbedBySmoker01a.vcd" //No...
scene "scenes/Coach/GrabbedBySmoker01b.vcd" //NO...
scene "scenes/Coach/GrabbedBySmoker02b.vcd" //NO!
scene "scenes/Coach/GrabbedBySmoker02c.vcd" //NO!
scene "scenes/Coach/GrabbedBySmoker02d.vcd" //AUGH!
scene "scenes/Coach/GrabbedBySmoker03b.vcd" //No!
scene "scenes/Coach/GrabbedBySmoker03c.vcd" //NO!!!
scene "scenes/Coach/GrabbedBySmoker04a.vcd" //No!
scene "scenes/Coach/GrabbedBySmoker04b.vcd" //No!
scene "scenes/Coach/GrabbedBySmoker04c.vcd" //NO!
}
Rule WitchDownedCoach
{
criteria ConceptWitchDowned IsCoach IsWitchPresent IsWitchAggro
Response WitchDownedCoach
}

Response PlayerIncapacitatedInitialC1M2Coach
{
scene "scenes/Coach/Blank.vcd" then orator C1M2SurvivorDown foo:0 0.1 //
Expand Down
72 changes: 57 additions & 15 deletions root/scripts/talker/gambler.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5046,7 +5046,7 @@ Response SurvivorSpottedArmoredC5M1Gambler
}
Rule SurvivorSpottedArmoredC5M1Gambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeArmored IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated ismap_c5m1_waterfront IsNotSaidArmoredWarn IsNotSpeakingWeight0 _auto_NotSpottedVehicle
criteria ConceptPlayerWarnSpecial IsSpecialTypeArmored IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated ismap_c5m1_waterfront IsNotSaidArmoredWarn IsNotSpeakingWeight0
ApplyContext "SaidArmoredWarn:1:0"
applycontexttoworld
Response SurvivorSpottedArmoredC5M1Gambler
Expand Down Expand Up @@ -5176,13 +5176,12 @@ Rule SurvivorSpottedCedaGambler

Response SurvivorSpottedCedaC1M1Gambler
{
norepeat
scene "scenes/Gambler/SeeHazmat02.vcd" //Guess those suits don't stop bites.
}
Rule SurvivorSpottedCedaC1M1Gambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeCeda IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidCedaWarn ismap_c1m1_hotel IsNotSpeakingWeight0
ApplyContext "SaidCedaWarn:1:0"
criteria ConceptPlayerWarnSpecial IsSpecialTypeCeda IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidCedaWarn ismap_c1m1_hotel SawFirstHazmat IsNotSpeakingWeight0
ApplyContext "SaidCedaWarn:1:20,SawHazmat:++1"
applycontexttoworld
Response SurvivorSpottedCedaC1M1Gambler
}
Expand Down Expand Up @@ -5271,8 +5270,8 @@ Response SurvivorSpottedClownC2M2Gambler
}
Rule SurvivorSpottedClownC2M2Gambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeClown IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated Ismap_c2m2 IsNotSaidClownWarn IsNotSpeakingWeight0
ApplyContext "SaidClownWarn:1:0,SawClowns:++1"
criteria ConceptPlayerWarnSpecial IsSpecialTypeClown IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated Ismap_c2m2 IsNotSaidClownWarn SawFirstClown IsNotSpeakingWeight0
ApplyContext "SaidClownWarn:1:20"
applycontexttoworld
Response SurvivorSpottedClownC2M2Gambler
}
Expand Down Expand Up @@ -5410,12 +5409,11 @@ Rule SurvivorSpottedInfectedGambler
Response SurvivorSpottedJimmyGambler
{
scene "scenes/Gambler/ReactionNegative07.vcd" //Holy Shit!
scene "scenes/Gambler/WorldC2M1B03.vcd" //God DAMN you, Jimmy Gibbs, Jr.
}
Rule SurvivorSpottedJimmyGambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeJimmy IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidJimmyWarn IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidJimmyWarn:1:3"
criteria ConceptPlayerWarnSpecial IsSpecialTypeJimmy IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated SawJimmyGibbs IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SawJimmyGibbs:++1"
applycontexttoworld
Response SurvivorSpottedJimmyGambler
}
Expand Down Expand Up @@ -5502,7 +5500,6 @@ Response SurvivorSpottedMudmenGambler
norepeat
scene "scenes/Gambler/SeeMudmen01.vcd" //Mudders!
scene "scenes/Gambler/SeeMudmen02.vcd" //Mudders!
scene "scenes/Gambler/SeeMudmen03.vcd" //Watch out, Mudmen!
scene "scenes/Gambler/SeeMudmen04.vcd" //Mudders!
}
Rule SurvivorSpottedMudmenGambler
Expand All @@ -5513,12 +5510,16 @@ Rule SurvivorSpottedMudmenGambler
Response SurvivorSpottedMudmenGambler
}

Response SurvivorSpottedMudmenC3M2Gambler
{
scene "scenes/Gambler/SeeMudmen03.vcd" //Watch out, Mudmen!
}
Rule SurvivorSpottedMudmenC3M2Gambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidMudmenWarn ismapc3m2_swamp IsNotSpeakingWeight0
ApplyContext "SaidMudmenWarn:1:0,SawMudMen:++1"
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidMudmenWarn ismapc3m2_swamp SawFirstMudMen IsNotSpeakingWeight0
ApplyContext "SaidMudmenWarn:1:20,SawMudMen:++1"
applycontexttoworld
Response SurvivorSpottedMudmenGambler
Response SurvivorSpottedMudmenC3M2Gambler
}

Response SurvivorSpottedMudmen2Gambler
Expand All @@ -5527,8 +5528,8 @@ Response SurvivorSpottedMudmen2Gambler
}
Rule SurvivorSpottedMudmen2Gambler
{
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidMudmenWarn SawManyMudMen IntensityUnder50 IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidMudmenWarn:1:20,SawMudMen:++1"
criteria ConceptPlayerWarnSpecial IsSpecialTypeMudmen IsNotCoughing IsGambler IsTalk IsTalkGambler IsWorldTalkGambler IsNotIncapacitated IsNotSaidMudmenWarn SawManyMudMen SickofMudMen IntensityUnder50 IsNotSpeakingWeight0 _auto_NotSpottedVehicle
ApplyContext "SaidMudmenWarn:1:20,SawMudMen:++1,SickOfMudMen:++1"
applycontexttoworld
Response SurvivorSpottedMudmen2Gambler
}
Expand Down Expand Up @@ -6537,6 +6538,13 @@ Rule PlayerHelpIncappedLethargicGambler
Response PlayerHelpIncappedLethargicGambler
}

Rule PlayerHelpIncappedWitchGambler
{
criteria ConceptPlayerHelp IsGambler IsIncapacitated IsWitchPresent IsWitchAggro
ApplyContext "CalledForHelp:1:10"
forceweight 30
Response NoResponse
}

//--------------------------------------------------------------------------------------------------------------
// PlayerIncappedResponse
Expand Down Expand Up @@ -11170,6 +11178,40 @@ Rule PlayerIncapacitatedInitialGambler
Response PlayerIncapacitatedInitialGambler
}

Response PlayerIncapacitatedInitialWitchGambler
{
scene "scenes/Gambler/HurtCritical01.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical02.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical03.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical04.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical05.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical06.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
scene "scenes/Gambler/HurtCritical07.vcd" then self WitchDowned foo:0 0.5 //[pain noise - loud major pain]
}
Rule PlayerIncapacitatedInitialWitchGambler
{
criteria ConceptPlayerIncapacitated IsGambler IsWitchPresent IsWitchAggro IsCriticalPain
ApplyContext "TalkGambler:1:2"
forceweight 30
Response PlayerIncapacitatedInitialWitchGambler
}

Response WitchDownedGambler
{
scene "scenes/Gambler/GrabbedBySmoker01.vcd" //no, No, No, NO, NOOOOOOO!!!!!!!!!
scene "scenes/Gambler/GrabbedBySmoker01a.vcd" //No, No!
scene "scenes/Gambler/GrabbedBySmoker04.vcd" //no, No, No, NO, NO!!!!!!!!
scene "scenes/Gambler/GrabbedBySmoker05.vcd" //no, No, No, NO!!!!!!!!
scene "scenes/Gambler/GrabbedBySmoker05a.vcd" //NO!
scene "scenes/Gambler/GrabbedBySmoker05b.vcd" //NO, NO!
scene "scenes/Gambler/GrabbedBySmoker05c.vcd" //NO!!!!!!!!
}
Rule WitchDownedGambler
{
criteria ConceptWitchDowned IsGambler IsWitchPresent IsWitchAggro
Response WitchDownedGambler
}

Response PlayerIncapacitatedInitialC1M2Gambler
{
scene "scenes/Gambler/Blank.vcd" then orator C1M2SurvivorDown foo:0 0.1 //
Expand Down
Loading

0 comments on commit c8180fe

Please sign in to comment.