Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Generating Weapons

3 replies · 2,091 views · Started 12 February 2007

How exactly do you place a weapon on the screen, for use in custom items and enemys and such. I can't find the command, but I seem to remember hearing that you could do it (and was the only way to easily damage enemies)

It's kind of a stupid question, but I really can't figure out how to do it. Thanks.

Currently, the commands CREATELWEAPONR, CREATELWEAPONV, CREATEEWEAPONV and CREATEEWEAPONR only available in ZASM.
Also, DarkDragon feels that these four commands ought to be united into two commands, so it's likely that these will become deprecated at some point.

Thanks. Also, none of the weapon variables seem to compile, such as WPNCOUNT or WPNX. Were they changed, or merely disabled? (using b219)

Here's what I had:


START WAITFRAME
COMPAREV INPUTR,1
GOTOFALSE START
SETR D0,WPNCOUNT
ADDV D0,1
CREATELWEAPONV 8
LOADWEAPONR D0
SETR WPNX,LINKX
SETR WPNY,LINKY
GOTO START

If I change WPNCOUNT to NPCCOUNT, it works fine until it hits WPNX.

There is some housecleaning that needs to be done before weapons scripting can work right. I'll try to get it done for 2.5, though at the moment I want to concentrate on killing outstanding critical bugs.