by Daniel » Tue Aug 11, 2009 5:23 am
Hello,
I've tried to make some objects which change behaviour on undewater using A_JumpIf, but I miss some global variables that should help the editing. With the actual code, we must make objects that call A_JumpIf always. So, the idea is creating some Underwater options, maybe to put into the MAPINFO lump (or DECORATE, if you do prefer, then we could do different configs to varius objects). Here they are:
UnderwaterEffect = [x]
can be 0, 1, 2, 3 according to how much the object is submerge (just like in A_JumpIf)
UnderwaterFlags = [flags]
we could add some flags, such as FLOATBOB or LOWGRAVITY, to make some desired effects.
UnderwaterGravity = [factor]
the multiplied gravity factor for underwater effect (0.5 for example)
With this, we could make monsters that float only underwater (for example: a fish)
Hope this should help!
EDIT: or the addition of the following flags should also help:
+UNDERWATER.FLOATBOB
+UNDERWATER.LOWGRAVITY
etc.
So, the only variable to be added should be UnderwaterEffect [x]
Hello,
I've tried to make some objects which change behaviour on undewater using A_JumpIf, but I miss some global variables that should help the editing. With the actual code, we must make objects that call A_JumpIf always. So, the idea is creating some Underwater options, maybe to put into the MAPINFO lump (or DECORATE, if you do prefer, then we could do different configs to varius objects). Here they are:
UnderwaterEffect = [x]
can be 0, 1, 2, 3 according to how much the object is submerge (just like in A_JumpIf)
UnderwaterFlags = [flags]
we could add some flags, such as FLOATBOB or LOWGRAVITY, to make some desired effects.
UnderwaterGravity = [factor]
the multiplied gravity factor for underwater effect (0.5 for example)
With this, we could make monsters that float only underwater (for example: a fish)
Hope this should help!
EDIT: or the addition of the following flags should also help:
+UNDERWATER.FLOATBOB
+UNDERWATER.LOWGRAVITY
etc.
So, the only variable to be added should be UnderwaterEffect [x]