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

    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
    • Ansome

      Well then, it's been about a week since I released my first FM and I must say that I was very pleasantly surprised by its reception. I had expected half as much interest in my short little FM as I received and even less when it came to positive feedback, but I am glad that the aspects of my mission that I put the most heart into were often the most appreciated. It was also delightful to read plenty of honest criticism and helpful feedback, as I've already been given plenty of useful pointers on improving my brushwork, level design, and gameplay difficulty.
      I've gotten back into the groove of chipping away at my reading and game list, as well as the endless FM catalogue here, but I may very well try my hand at the 15th anniversary contest should it materialize. That is assuming my eyes are ready for a few more months of Dark Radiant's bright interface while burning the midnight oil, of course!
      · 4 replies
×
×
  • Create New...