PDA

View Full Version : What's wrong with this code?


Dr. Kylstien
05-28-2005, 06:46 PM
I have defined a projectile like so:

action FIREBLASTING 0 1 1 5 0
useractor notenemy FIREBLAST FREEZETHROWER_WEAPON_STRENGTH FIREBLASTING enda
defineprojectile FIREBLAST PROJ_WORKSLIKE 512
defineprojectile FIREBLAST PROJ_SPAWNS BURNING
defineprojectile FIREBLAST PROJ_VEL 800
defineprojectile FIREBLAST PROJ_HITRADIUS 512
defineprojectile FIREBLAST PROJ_OFFSET 224
defineprojectile FIREBLAST PROJ_CLIPDIST 24
defineprojectile FIREBLAST PROJ_TRAIL EXPLOSION2

and set the shoots var for my weapon, but in-game, it just shoots blanks. What am I missing?

TerminX
05-28-2005, 09:26 PM
You're missing a basic understanding of the projectile system. See http://www.eduke32.com/wiki/index.php?title=Defineprojectile for details.

Dr. Kylstien
05-29-2005, 12:04 AM
I already read that. I still don't understand what I'm doing wrong.

TerminX
05-29-2005, 02:16 AM
Dr. Kylstien said:
I already read that. I still don't understand what I'm doing wrong.


It says you need to add flags to achieve the effect you want. You've done nothing but set the projectile's flag to 512 -- I do not see any adding going on here. The base projectile types are obviously hitscan (bullets) and RPG type (flying projectiles). As you haven't tagged your projectile as a flying projectile, it's no wonder it doesn't work.

Once again, I suppose I shall have to edit the wiki page to make clarifications. Oh well. Have fun.