Jump to content
The Dark Mod Forums

Can you KO a horse?


Springheel

Recommended Posts

I need one or two people to do me a favour. Can you download the testmap from here: http://bugs.thedarkmod.com/view.php?id=2818 and see if you can KO either horse? For some reason Zbyl and I are seeing completely different behaviour.

Link to comment
Share on other sites

I KO'ed the horse behind the wench with one blow to the neck. He has no ko_immune spawnarg, but the default in the code is 0.

 

I couldn't KO the other horse. He has ko_immune set to 1.

 

Apart from the expectation that by default you shouldn't be able to KO a horse, it's working as expected.

 

Edit: I used the latest SVN.

Link to comment
Share on other sites

Well damn, I found the problem. I had added ko_immune 1 to the entitydefs of the horse, locally, without realizing there were five different horse entities. So the one in my map was different than the ones I had added the spawnarg to. It now seems to be working properly.

 

Doh.

Link to comment
Share on other sites

Have you added the spawnarg to the base class of the horse this time? That would make it work for all future horses, too.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

There is no base class, for some reason. It's a bit silly to have five different entities repeating all the same information, especially when they seem to differ only in the model they use.

Link to comment
Share on other sites

There is this little bit of code in the TDM 1.08 horses' definitions:

"ko_zone"		""	   //cannot be blackjacked

 

And in idAI::TestKnockoutBlow() the zone is checked as follows:

// check if we're hitting the right zone (usually the head)
if ( idStr::Cmp(locationName, m_KoZone) != 0 ) ...

 

But since for the horse all location names are empty, empty ko_zone allows for KO!

I would suggest removing ko_zone from horses' def's and using ko_immune only.

This way or another using empty ko_zone for preventing KO's is not a good way.

 

Side note: in DR "ko_immune" has a description:

0 = not immune, 1 = immune to blackjack, 2 = immune to gas, 3 = immune to blackjack and gas.

While in code "ko_immune" is a bool.

For gas-KO "gas_immune" bool is used.

Edited by Zbyl
Link to comment
Share on other sites

  • 1 month later...

There is this little bit of code in the TDM 1.08 horses' definitions:

"ko_zone"		""	   //cannot be blackjacked

 

And in idAI::TestKnockoutBlow() the zone is checked as follows:

// check if we're hitting the right zone (usually the head)
if ( idStr::Cmp(locationName, m_KoZone) != 0 ) ...

 

But since for the horse all location names are empty, empty ko_zone allows for KO!

I would suggest removing ko_zone from horses' def's and using ko_immune only.

This way or another using empty ko_zone for preventing KO's is not a good way.

 

Side note: in DR "ko_immune" has a description:

0 = not immune, 1 = immune to blackjack, 2 = immune to gas, 3 = immune to blackjack and gas.

While in code "ko_immune" is a bool.

For gas-KO "gas_immune" bool is used.

 

Would you be willing to send in a patch that corrects these descritions? They are all in the def files and should reflect what the code does.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

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

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • 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.
      · 7 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
×
×
  • Create New...