Jump to content
The Dark Mod Forums

Stim effect_knockout broken?


Sotha

Recommended Posts

Situation:

*I got one AI

*I got a trigger_once targetting a func_static with stim trigger, which should do effect_knockout on the AI.

*I got a trigger_once targetting a func_static with stim trigger, which should do effect_kill on the AI.

*I've checked many times that the AI is properly targeted by both the stim triggers. In fact the stim triggers are indentical, except their name and sr_effect_1_1. The sr_effect_1_1_arg1 -parameter is identical in both triggers.

 

When I walk to the trigger which should knock the AI out I get an error message:

script/tdm_response_effects_script(131): thread 'StimResponse::effect_knockout_action' : entity not found for event 'knockout'. Terminating thread.

 

When I walk to the trigger which should kill the AI, the AI simply dies like he should.

 

Conclusion: the knockout stim isn't working properly? Or did I simply do something wrong?

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Here it is

 

 

************

 

 

 

Version 2

// entity 0

{

"classname" "worldspawn"

"editor_drLastCameraPos" "175.701 -159.115 8.22332"

"editor_drLastCameraAngle" "20.4 147 0"

"editor_drMapPos1" "145.117 609.786 279.045"

"editor_drMapAngle1" "-48 150.8 0"

"editor_drMapPos2" "414.798 255.441 -264.933"

"editor_drMapAngle2" "2.10002 84.5976 0"

"editor_drMapPos3" "-749.97 -1606.21 -470.066"

"editor_drMapAngle3" "-3.29998 6.59757 0"

"editor_drMapPos4" "1014.05 -953.679 -556.857"

"editor_drMapAngle4" "-10.2 355.498 0"

"editor_drMapPos5" "987.599 3513.79 -319.877"

"editor_drMapAngle5" "-61.1999 172.198 0"

"editor_drMapPos6" "-1032.5 -2840 739.5"

"editor_drMapAngle6" "-77.0999 175.798 0"

"editor_drMapPos7" "952.822 285.005 1366.04"

"editor_drMapAngle7" "-74.8 149.373 0"

"editor_drMapPos8" "976 424 320"

"editor_drMapAngle8" "-3 15.3467 0"

"editor_drMapPos9" "409.146 547.464 392.83"

"editor_drMapAngle9" "-16.8 284.947 0"

// primitive 0

{

brushDef3

{

( 0 0 1 -116 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -94 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -322 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -76 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -170 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -256 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 108 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 1

{

brushDef3

{

( 0 0 1 -108 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -102 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -322 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -84 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -162 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -256 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 94 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 2

{

brushDef3

{

( 0 0 1 -108 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -94 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -330 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -84 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -170 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -248 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 322 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 3

{

brushDef3

{

( 0 0 1 -100 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -94 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -322 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -92 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -170 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -256 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 1 84 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 4

{

brushDef3

{

( 0 0 1 -108 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -86 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -322 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -84 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -178 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -256 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 170 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 5

{

brushDef3

{

( 0 0 1 -108 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0.0520833312637277 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -94 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -314 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -84 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 15.94791666873627 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -170 ) ( ( 0.006510416407965962 0 0.0520833312637277 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -264 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 256 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

// primitive 6

{

brushDef3

{

( 0 0 1 48 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.003255208203982981 0.01302083281593192 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

( 0 1 0 -24 ) ( ( 0.006510416407965962 0 15.97395833436814 ) ( 0 0.003255208203982981 7.765625009313226 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

( 1 0 0 76 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.003255208203982981 7.765625009313226 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

( 0 0 -1 -88 ) ( ( 0.006510416407965962 0 15.94791666873627 ) ( 0 0.003255208203982981 7.986979167184068 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

( 0 -1 0 -40 ) ( ( 0.006510416407965962 0 0.02604166563186385 ) ( 0 0.003255208203982981 7.765625009313226 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

( -1 0 0 -204 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.003255208203982981 7.765625009313226 ) ) "textures/darkmod/stone/sculpted/carved_design_bones01" 0 0 0

}

}

// primitive 7

{

brushDef3

{

( 0 0 1 48 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 1 0 -24 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 1 0 0 -60 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 0 -1 -88 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( 0 -1 0 -40 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

( -1 0 0 -68 ) ( ( 0.006510416407965962 0 0 ) ( 0 0.006510416407965962 0 ) ) "textures/darkmod/metal/detailed/bars_rivets_iron" 0 0 0

}

}

}

// entity 1

{

"classname" "func_static"

"name" "test_AI_stunner"

"model" "models/darkmod/kitchen/chamberpot.lwo"

"origin" "169 27 -46"

"sr_class_1" "R"

"sr_effect_1_1" "effect_knockout"

"sr_effect_1_1_arg1" "Test_AI"

"sr_state_1" "1"

"sr_type_1" "STIM_TRIGGER"

}

// entity 2

{

"classname" "atdm:ai_townsfolk_commoner"

"name" "Test_AI"

"origin" "150.734 -10.68 -49"

"rotation" "0 1 0 -1 0 0 0 0 1"

"team" "0"

}

// entity 3

{

"classname" "trigger_once"

"name" "trigger_once_2"

"model" "trigger_once_2"

"origin" "-10 -8 1"

"target" "test_AI_stunner"

// primitive 0

{

brushDef3

{

( 0 0 1 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 31.47916668736272 ) ) "textures/common/trigonce" 0 0 0

( 0 1 0 -28 ) ( ( 0.0520833312637277 0 0.5208333126372793 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( 1 0 0 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( 0 0 -1 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 0.5208333126372793 ) ) "textures/common/trigonce" 0 0 0

( 0 -1 0 -28 ) ( ( 0.0520833312637277 0 31.47916668736272 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( -1 0 0 -52 ) ( ( 0.0520833312637277 0 26.70832845734248 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

}

}

}

// entity 4

{

"classname" "func_static"

"name" "test_AI_killer"

"model" "models/darkmod/kitchen/chamberpot.lwo"

"origin" "125 29 -48"

"sr_class_1" "R"

"sr_effect_1_1" "effect_kill"

"sr_effect_1_1_arg1" "Test_AI"

"sr_state_1" "1"

"sr_type_1" "STIM_TRIGGER"

}

// entity 5

{

"classname" "trigger_once"

"name" "trig"

"model" "trig"

"origin" "-138 -8 1"

"target" "test_AI_killer"

// primitive 0

{

brushDef3

{

( 0 0 1 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 6.145833089119869 ) ) "textures/common/trigonce" 0 0 0

( 0 1 0 -28 ) ( ( 0.0520833312637277 0 25.85416691088014 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( 1 0 0 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( 0 0 -1 -52 ) ( ( 0.0520833312637277 0 5.291671542657525 ) ( 0 0.0520833312637277 25.85416691088014 ) ) "textures/common/trigonce" 0 0 0

( 0 -1 0 -28 ) ( ( 0.0520833312637277 0 6.145833089119869 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

( -1 0 0 -52 ) ( ( 0.0520833312637277 0 26.70832845734248 ) ( 0 0.0520833312637277 31.427083356099 ) ) "textures/common/trigonce" 0 0 0

}

}

}

// entity 6

{

"classname" "light"

"name" "light_1"

"origin" "48 -64 16"

"light_center" "0 0 0"

"light_radius" "576 376 320"

}

// entity 7

{

"classname" "info_player_start"

"name" "info_player_start_1"

"origin" "-144 -112 -48"

"angle" "90"

}

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Confirmed. Can you please open an issue on the bugtracker. I guess I can fix that script event easily, it's probably due to a lowercase "e" in the idEventDef cosntructor, instead of an uppercase "E".

 

edit: nevermind. http://bugs.angua.at/view.php?id=2269

 

As workaround, you could write a custom script, knocking out the AI:

 

void knockoutTestAI()
{
$Test_AI.knockout($player1);
}

 

using a target_callscriptfunction entity calling that script snippet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...