Use of "Pickup:" state in pickup-only items (i.e Armour)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Use of "Pickup:" state in pickup-only items (i.e Armour)

Re: Use of "Pickup:" state in pickup-only items (i.e Armour)

by Graf Zahl » Mon Dec 10, 2018 4:41 am

Matt wrote:Given CallStateChain is still hard-coded to do everything in one tic[/url] I take it it's not actually capable of doing anything that a direct TryPickup override can't do better...

Correct. That's why I consider the feature deprecated. It was nice to have when nothing better existed, but there is absolutely no point to expand on it anymore.

Re: Use of "Pickup:" state in pickup-only items (i.e Armour)

by Matt » Mon Dec 10, 2018 2:55 am

Here is the ZScript that is now responsible for the CI pickup state behaviour. It calls CallStateChain first before trying the more normal means of picking things up.

EDIT: Except that CallStateChain is a native code that is unique to CustomInventory. What would be the ZS equivalent of this?

EDIT: Given CallStateChain is still hard-coded to do everything in one tic I take it it's not actually capable of doing anything that a direct TryPickup override can't do better...

Re: Use of "Pickup:" state in pickup-only items (i.e Armour)

by Graf Zahl » Mon Dec 10, 2018 1:34 am

The Pickup state is a relic from old DECORATE and no longer needed with ZScript.The entire CzustomInventory functionality is essentially deprecated by now. Don't expect any work to be done on this.

Use of "Pickup:" state in pickup-only items (i.e Armour)

by XLightningStormL » Sun Dec 09, 2018 8:51 pm

Essentially the use of the Pickup actor state in AAPU items which typically include armours and powerups.

This system for example can be used to grant inventory items on pickup, so if picking up a Green Armour also gives me a seperate inventory item which when detected by a zscript script enables me to read its codex entry (a-la metadoom codex)

Top