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 

CheckInventory lacks check for active powerup effects

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


Joined: 08 Jan 2006
Location: Hungary

PostPosted: Sun Jul 06, 2014 9:12 am    Post subject: CheckInventory lacks check for active powerup effects Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Sun Jul 29, 2018 6:22 pm    Post subject: Reply with quote

Combined demo wad GetActorPowerupTics and CheckInventory powerups: GetActorPowerupTics_test3.wad

Added for 1.10.06.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Implemented 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