http://zdoom.org/wiki/A_WeaponOffset
[SOLVED] PITCH Offset!
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.
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.
[SOLVED] PITCH Offset!
Last edited by GENTEK on Sat May 21, 2016 9:18 am, edited 4 times in total.
- Caligari87
- Admin
- Posts: 6248
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: PITCH Check ?
[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.
Re: PITCH Check ?
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.
Re: PITCH Check: How to ?
(pitch/90)*MaxValueHere right there in the decorate innit?
