
EDuke32 Scripting "CON coding help"
#106 Posted 15 July 2009 - 08:19 AM
This post has been edited by XThX2: 15 July 2009 - 08:19 AM
#107 Posted 15 July 2009 - 02:14 PM
Locked

Unlocked, with Key

Unlocked, without Key

#108 Posted 15 July 2009 - 03:43 PM
This post has been edited by XThX2: 15 July 2009 - 03:43 PM
#109 Posted 17 July 2009 - 05:44 AM
{ 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" ?
This post has been edited by XThX2: 17 July 2009 - 06:31 AM
#110 Posted 17 July 2009 - 08:13 AM
XThX2, on Jul 17 2009, 09:44 AM, said:
I assume it does a bitwise OR and executes the code block if the result is not zero.
This post has been edited by Dr. Kylstein: 17 July 2009 - 08:19 AM
#111 Posted 18 July 2009 - 03:23 PM
This post has been edited by XThX2: 18 July 2009 - 03:24 PM
#112 Posted 20 July 2009 - 12:00 AM
I am only using it as I always used:
Quote
May I have missed certain update note and I am using a out-of-date sintax? =/
#113 Posted 20 July 2009 - 01:23 PM
#114 Posted 22 July 2009 - 02:17 AM
Quote
define SECTOREFFECTOR 1
define ACTIVATOR 2
(...)
define SMALLSMOKE 3610
2) Does the Shrinker HUD weapon glowing is stored somewhere? I mean, the crystal HUD tile seems to change it's shading. Is it stored somewhere in a structure member?
#116 Posted 22 July 2009 - 10:26 AM
2) It's in the WEAPONx_... gamevars, I think WEAPON6 to be exact.
#117 Posted 22 July 2009 - 10:28 AM
#118 Posted 22 July 2009 - 11:58 AM
This post has been edited by M210: 22 July 2009 - 12:00 PM
#119 Posted 22 July 2009 - 01:02 PM
When hit by a weapon (ifhitweapon OR getactor[THISACTOR].htextra temp ifvarg temp 0) get the angle your actor got hit, add 1024 to it, set your actors angle to the new angle and make it shoot a projectile that looks exactly like this actor, and then kill the shooting actor. Make sure this new projectile has bounces off walls tag along with a few others that you find necessary. (I don't have time to type out the whole code)
This post has been edited by XThX2: 22 July 2009 - 01:02 PM
#120 Posted 22 July 2009 - 01:40 PM
Angle of actor may get through code
getactor[THISACTOR].htang tmp cos x tmp sin y tmp movesprite THISACTOR x y 0 CLIPMASK RETURN
and need get a ID of wall which have contact with actor and reflect it. but how to get it ID of wall?
This post has been edited by M210: 22 July 2009 - 01:49 PM
#123 Posted 23 July 2009 - 03:14 AM
#124 Posted 23 July 2009 - 03:17 AM
eventloadactor SHOTGUNAMMO setactor[THISACTOR].xrepeat 50 setactor[THISACTOR].yrepeat 50 enda actor SHOTGUNAMMO fall sizeat 50 50 . . .
Well, you may try changing the actor to an user actor if this doesn't work. This is the usual method I use for resizing my enemies. (Sizeat for when the actor spawns, eventloadactor for mapload)
#125 Posted 23 July 2009 - 06:45 AM
Cage, on Jul 23 2009, 08:14 AM, said:
Quote
ifactor SHOTGUNAMMO
sizeat 50 50
endevent
#126 Posted 26 July 2009 - 05:04 PM
This post has been edited by MIKE SIMS: 26 July 2009 - 05:05 PM
#127 Posted 26 July 2009 - 05:17 PM
#128 Posted 26 July 2009 - 05:45 PM
#129 Posted 26 July 2009 - 05:53 PM
Captain Awesome, on Jul 26 2009, 06:17 PM, said:
for some reason I got it to appear in the top left corner with x0 y0 dimensions... but when I try other dimensions it wont appear... I basically want to get it exactly where the crosshair is.
#130 Posted 27 July 2009 - 02:59 AM
I would like my character's movement animation to speed up when he moves faster but I don't want to have to result into defining the same animation loads of times accross many tile spaces.
This post has been edited by Chip: 27 July 2009 - 03:01 AM
#132 Posted 27 July 2009 - 03:55 AM
This post has been edited by Chip: 27 July 2009 - 03:55 AM
#133 Posted 27 July 2009 - 05:26 AM
Hendricks266 said:
I try it the simpliest way. I put the dynamicremap command on top of DEFS, and them define SMALLSMOKE 1660. And them it doesn't work properly, here is a screenshot:

As you can see, the SMALLSMOKE has no sizeat definition (and uses 1 by default) - It's not the same as not using dynamicremap, but it is not as functional as it was before (when used to add dynamicremap command before every define).
I have attached a file with the DEFS I am using, anyone else is having this problem?
Attached File(s)
-
DEFS.zip (8.9K)
Number of downloads: 1043