ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dehacked thing properties: Drop item related

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Pending Requests
View previous topic :: View next topic  
Author Message
Body-Guard
Unstoppable!


Joined: 08 Jan 2006
Location: Hungary

PostPosted: Sat Jan 08, 2022 9:18 am    Post subject: Dehacked thing properties: Drop item related Reply with quote

These properties would allow control over the items dropped by monsters when they die. Implementation could follow the definition of the similarly named ACS function:
https://zdoom.org/wiki/DropItem

Code:
Thing 2 (ZombieMan)
Drop Item = 64    #Dehacked thing number
Drop Amount = 5
Drop Chance = 256

Thing 64 (Clip)


While the above code's functionality is entirely doable already with dehacked executing ACS code which would spawn the clip, you cannot make an actor to NOT to drop an inventory item. To be able to override this hardcoded behavior, the following snippet could be used to drop nothing (-1 means to drop nothing):

Code:
Thing 2 (ZombieMan)
Drop Item = -1
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Pending Requests All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group