Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Sat Jan 08, 2022 9:18 am Post subject: Dehacked thing properties: Drop item related |
|
|
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
|
|
|