Pure Hellspawn Posted August 29, 2014 any alternative to GetWeapon()? I need a function that gets equipped weapon. i also could use a new zcommon.acs or something but i need help with that. 0 Share this post Link to post
scifista42 Posted August 29, 2014 I guess you want Zandronum compatibility? There is an alternative, but requires to alter DECORATE codes for all weapons. Basically, in their "Select" state, use A_GiveInventory() to give a certain dummy inventory to the player when he selects the weapon. Each weapon must have a different inventory, or different amount of the inventory. Also, use A_TakeInventory() in the weapon's "Deselect" state to take this inventory when player deselects the weapon. Then, whenever and whereever you want, check if the player has this dummy inventory (and which one) by CheckInventory() in ACS. EDITED 0 Share this post Link to post
Pure Hellspawn Posted August 29, 2014 it didn't compile in Doom Builder 2. is there a way i can make it compile? 0 Share this post Link to post
scifista42 Posted August 29, 2014 I made my post clearer about DECORATE x ACS. EDIT: I don't think I can help you with zcommon.acs anyhow. 0 Share this post Link to post
Pure Hellspawn Posted August 29, 2014 scifista42 said:I made my post clearer about DECORATE x ACS. oh wait i meant the getweapon() function. if there's a way to make that compile then i can just use that. 0 Share this post Link to post
Blue Shadow Posted August 30, 2014 You can find the latest and up-to-date ACS headers here (look at the very bottom of the list for the .acs files). 0 Share this post Link to post