Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [MAPADD] Arlene Fix showstopping bug on d1_canals_05  (Read 218 times)

0 Members and 1 Guest are viewing this topic.

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
[MAPADD] Arlene Fix showstopping bug on d1_canals_05
« on: July 14, 2020, 01:46:03 AM »
Because SMOD allows the player the ability to kill all NPC's, even essential ones, there is a chance for the player to kill Arlene, the airboat lady on map d1_canals_05.
If they kill her before she opens the gate, the Airboat becomes trapped and the player pretty much has to restart.

Add the following code to your d1_canals_05 mapadd file to fix this bug.

1.) in the "entities" {} section of the mapadd file add the following:

Code: [Select]
// Sends commands to the server.
"point_servercommand" {
"keyvalues" {
"targetname" "game_s_cmd"
}
}

// This trigger should run as soon as Arlene spawns.
"trigger_once" {
"origin" "6400 966 -430" // HL2 trigger origin
"keyvalues" {
"targetname" "arlene_fix_trig"
"model" "*105"
"spawnflags" "1"
"OnTrigger" "game_s_cmd,Command,instant_trig_run arlene_fix,0.1,1"
}
}


2.) At the bottom of the file add the following two labeled entity groups. Make sure they are NOT inside any other section/group:

Code: [Select]
"entities:arlene_fix" {

// Inject an output into Arlene!
// SMOD allows player to kill Arlene, showstopping the map.
// This will open the gate if she is killed.
"event" {
"targetname" "Arlene"
"action" "AddOutput"
"value" "OnDeath player_killed_arlene_relay,Trigger,,0,1"
}

// FAILSAFE: This relay fires the gate open sequence that
// prevents player from getting stuck if they kill Arlene.
"logic_relay" {
"keyvalues" {
"targetname" "player_killed_arlene_relay"
"StartDisabled" "0"
// This opens the gate if she is killed prematurely.
"OnTrigger" "game_s_cmd,Command,instant_trig_run player_killed_arlene,0,-1"
}
}

// Inject an output!
// If Arlene opens the gate, turn off the FailSafe.
"event" {
"targetname" "relay_airboat_gateopen"
"action" "AddOutput"
"value" "OnTrigger player_killed_arlene_relay,Disable,,0.1,1"
}
}

// Opens the gate if Arlene is killed prematurely by player.
"entities:player_killed_arlene" {

// If this thing dies, explode the gate
"npc_bullseye" {
"origin" "6761.2 1437.0 -472.9"
"keyvalues" {
"targetname" "arlene_fix_gate_bulls"
"spawnflags" "65536" //NotSolid
// Open Door
"OnDeath" "door_boatdock_entrance,Open,,0,-1"
// Break gate
"OnDeath" "physbox_boatdock_entrance,Break,,0.1,-1"
}
}

// And this should for sure kill the bullseye.
"fusabanana" {
"origin" "6821.5 1442.9 -485.1"  "angle" "88 147 125"
}
}
« Last Edit: July 14, 2020, 08:34:22 AM by BIZ »

Offline HentaiSpirit

  • *
  • +1% chance to make useful post
  • HentaiSpirit has no influence.
Re: [MAPADD] Arlene Fix showstopping bug on d1_canals_05
« Reply #1 on: July 26, 2020, 01:57:07 AM »
Kinda feel like that's the player's fault and you shouldn't need to fix their mistake
No sorcery lies beyond my grasp !

Offline BIZ

  • 32-Bit Hobo
  • *
  • *
  • +0% chance to make useful post
  • BIZ hides in shadows.
    • BSNOOCH.COM
Re: [MAPADD] Arlene Fix showstopping bug on d1_canals_05
« Reply #2 on: July 26, 2020, 05:25:21 AM »
Just doin the lords work

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal