Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Sun Jul 06, 2014 9:12 am Post subject: CheckInventory lacks check for active powerup effects |
|
|
http://zdoom.org/wiki/CheckInventory
http://zdoom.org/wiki/Classes:Powerup
I am not sure wether to consider this as a bug or a feature request, but since ACS is claimed to be somewhere in Zdoom 2 feature level I think it is safe to assume this is an oversight.
Zdoom and Zdaemon in general uses powerup inventory to tell the game that the player possesses a power (eg. he can fly). In Zdoom2, CheckInventory can be used to check for active effects (eg. the player used the ArtiFly inventory item, and he has the flying effect). Note the important part: you do not check for the existence of the "ArtiFly" inventory item (since it was already used and no longer exists), but for the "PowerFlight" powerup (http://zdoom.org/wiki/Classes:PowerFlight) which is the effect of ArtiFly.
The bug: you cannot use CheckInventory to check for active effects.
Example: http://destiny-server.no-ip.org/stuff/checkinventory_powerup.zip
Use the console to give yourself the ArtiFly inventory item, then use it. Compare the behavior to Zdoom 2.
Please do not forget that CheckActorInventory can be used the same way as well ( http://zdoom.org/wiki/CheckActorInventory ).
Side note: I noticed that you cannot give yourself the PowerFlight effect directly, whereas in Zdoom 2 you can. |
|