{
eshoot GRAYROCKET
getactor[THISACTOR].x x
getactor[THISACTOR].y y
getplayer[THISACTOR].ang TEMP
setvarvar x2 x
addvar x2 384
setvarvar y2 y
subvar y2 128
rotatepoint x y x2 y2 TEMP x3 y3
setactor[RETURN].x x3
setactor[RETURN].y y3
eshoot GRAYROCKET
addvar y2 256
rotatepoint x y x2 y2 TEMP x3 y3
setactor[RETURN].x x3
setactor[RETURN].y y3
}I don't know why, but this projectile goes through walls if you fire really close to the wall. (I think it is because of the rotatesprite) How can I prevent it ? Here's the code of the projectile itself in any case.
defineprojectile GRAYROCKET PROJ_WORKSLIKE 65538 defineprojectile GRAYROCKET PROJ_SPAWNS EXPLOSION2 defineprojectile GRAYROCKET PROJ_VEL 814 defineprojectile GRAYROCKET PROJ_EXTRA 300 defineprojectile GRAYROCKET PROJ_ISOUND GRAY_BOOM defineprojectile GRAYROCKET PROJ_XREPEAT 48 defineprojectile GRAYROCKET PROJ_YREPEAT 48 defineprojectile GRAYROCKET PROJ_HITRADIUS 2600 defineprojectile GRAYROCKET PROJ_OFFSET 128 defineprojectile GRAYROCKET PROJ_CLIPDIST 48
And a different question, what does ifvaror do? Is it like "if variable Y is added X, then do" ?

Help
Duke4.net
DNF #1
Duke 3D #1





