• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

LUA weapons

Status
Not open for further replies.

amperbee

thunderdome denizen
How do I make my script know which weapons are available in the player's character?

I want to try to enable the old 1.09.4 feature (was that version?) where you could get the automatic ring and the rail ring to fire automatic firing rail rings, but with the actual weapons.
 
Looking at the useable structures post from Monster's Lua documentation thread(You should bookmark this, it's your best friend, seriously), the information you're looking for is most likely in ringweapons, from the player_t structure.

To make sense of what's in there, download the source code(see download zip, on the right) and do a search for ringweapons using Windows from within the src folder, making sure to have it search for text inside of files. That should point you in the right direction.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top