ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A_Jump / A_RandomJump

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Implemented Requests
View previous topic :: View next topic  
Author Message
Jad
On a Rampage!


Joined: 14 Jan 2007
Location: Miami

PostPosted: Sat Sep 28, 2013 9:43 pm    Post subject: A_Jump / A_RandomJump Reply with quote

MBF has the codepointer A_RandomJump (which is replaced by A_Jump in Zdoom) which allows for the random advancement of a frame.

MBF uses "Unknown 1" for the chance (0 being never, 255 being always) and "Unknown 2" for the number of frames to skip.

This is how ZDoom implements it with decorate, but the function is the same.
http://zdoom.org/wiki/A_Jump

Test wad:
The barrel should have a 50% chance of blowing up, every time its spawn frame is reached (every 6 tics).
jumpTest.wad

Edit: The DEHACKED lump in the wad uses the "Jump" codepointer, but "RandomJump" doesn't do anything either.

Edit: More on the MBF codepointers from this thread; http://forums.zdaemon.org/viewtopic.php?t=14243&sid=f4b170f08682c16f31e3b81106e94cf7
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aeyesx
Spamming!


Joined: 13 Oct 2012
Location: Czech Republic

PostPosted: Thu Sep 18, 2014 11:20 pm    Post subject: Reply with quote


This feature has been implented as of ZDaemon 1.10 Beta03


Well this is original post, yet there is newer duplicate that was kinda more alive... so..
http://forums.zdaemon.org/viewtopic.php?t=16091
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Implemented Requests All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group