[SOLVED] PITCH Offset!

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
GENTEK
Posts: 673
Joined: Mon Aug 05, 2013 5:10 pm

[SOLVED] PITCH Offset!

Post by GENTEK »

Thanks guys! :mrgreen: This is exactly what I need!
http://zdoom.org/wiki/A_WeaponOffset
Last edited by GENTEK on Sat May 21, 2016 9:18 am, edited 4 times in total.
User avatar
Caligari87
Admin
Posts: 6248
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: PITCH Check ?

Post by Caligari87 »

[wiki]DECORATE_expressions[/wiki]
The Wiki wrote:There are a few variables you can use for dynamic data in DECORATE definitions. These are:
Actor position and movement

x — The actor's X position in the world.
y — Same, but for Y.
z — Same, but for Z.
angle — Actor's angle, in degrees
ceilingz — See GetActorCeilingZ
floorz — See GetActorFloorZ
pitch — The actor's pitch in degrees.
8-)
GENTEK
Posts: 673
Joined: Mon Aug 05, 2013 5:10 pm

Re: PITCH Check ?

Post by GENTEK »

Thanks Caligari87! What I try to make more simple is... with each PITCH check from DOWN to UP... the offset of the weapon change! My way work but Im pretty sure I can improve it.
User avatar
kodi
 
 
Posts: 1361
Joined: Mon May 06, 2013 8:02 am

Re: PITCH Check: How to ?

Post by kodi »

(pitch/90)*MaxValueHere right there in the decorate innit?
GENTEK
Posts: 673
Joined: Mon Aug 05, 2013 5:10 pm

Re: PITCH Check: How to ?

Post by GENTEK »

Thanks guys! :mrgreen: This is exactly what I need!
http://zdoom.org/wiki/A_WeaponOffset
Locked

Return to “Editing (Archive)”