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

    • 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
    • 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...