Jump to content
The Dark Mod Forums

Playertools:holywater -- how to apply that entitydef to custom model?


geegee

Recommended Posts

I want a potion with holywater properties, but applied to a DR made model that looks more appropriate for my FM (with no crucifix).  

I've made several objects to grab, put in inventory, then drop at a location to complete objectives before, so that's not a problem.  

But how do I apply the properties of entityDef atdm:playertools_holywater to a model?  One required property is that it can be applied to a waterarrow.   I copy/pasted the holywater entitydef to myfm/def subfolder with appropriate name changes, but that didn't work at all...

Does anyone know of an FM that has done this, or something similar enough with playertools, so I can copy that procedure?  

 

Link to comment
Share on other sites

You could just create a holy water potion in your map and change its "model" spawnarg to your custom model. The more sophisticated way would be to create a new entityDef that inherits from the original potion entity but specifies a different model. Either of those are how customisations like yours are usually done.

Note that if the model should be for a moveable like a potion, then it needs a collision mesh. This is a very simplistic shape that can be part of the model - you could look at the existing holywater's collision mesh to see how it's done.

Link to comment
Share on other sites

Thank you!  And so simple, too.  Being an unsophisticated type, I'll opt for the easy way. 

eta. -  or perhaps not.  I need a new icon and inv_name etc. - i.e. not "holy".  So back to the problem:  where do I put the new entitydef?  Is myFM/def the right place?  Is my copy/paste -> change names procedure on track?  

eta2.  After creating a holy water potion then changing the model to my own, it works exactly like the original holy water -- so my model inc. collision mesh is OK.  The icon and inv_name are dead wrong, tho'. 

Also, about the way holy water arrows work is very odd and I don't like it.  I tested on various undead AI with these results. 

atdm:ai_undead_revenant   
4 x hw_arrow to kill it.
1 x fire_arrow to kill.

atdm:ai_undead_skeleton_armed
atdm:ai_undead_skeleton
2 x hw_arrow to kill.
1 x fire_arrow to kill.

atdm:ai_undead_zombie
2 x hw_arrow to kill.
1 x fire_arrow to kill.

atdm:ai_builder_guard_ghost
invisible to player, it still attacks and kills player

atdm:ai_revenant_spirit
flat black skin.  nonsolid for hw_arrow and fire_arrow

How can a player know it takes 4 shots with holy water arrows to kill the (no doubt closely) attacking revenant?

What's the point of an invisible unkillable attacker (builder ghost)?  Or an unkillable revenant spirit? 

Edited by geegee
Link to comment
Share on other sites

I got it to work with my model, icon, names.  Everything good to go except, IMO it's unusable as it takes 4 hits to kill a revenant, 2 to kill a skeleton - which strikes me as being so wrong that it kills immersion.  Too bad.

The problems with builder_ghost and revenant_spirit must be a rendering bug.

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
       
      · 3 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
×
×
  • Create New...