View previous topic :: View next topic |
Author |
Message |
Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Fri Aug 29, 2014 10:27 am Post subject: MBF-style codepointer: RandomJump |
|
|
Now this is a pretty useful codepointer to make some less static actors with. In fact, I can't stress enough the importance from modder view
http://eternity.youfailit.net/index.php?title=RandomJump
Unknown 1 field specifies the frame number to jump to.
Unknown 2 field specifies the chance out of 256 to execute the jump. If the jump chance does not pass, it goes to the next frame.
example would be:
Code: | Frame 156
Unknown 1 = 534
Unknown 2 = 128
Next frame = 157
[CODEPTR]
Frame 156 = RandomJump |
explanation:
Frame 156 has 50% chance (128 out of 256) to jump to frame 534. Otherwise it goes to next frame, which is 157. |
|
Back to top |
|
|
Sr69Mm-jC Unstoppable!
Joined: 21 Jul 2011
|
Posted: Fri Aug 29, 2014 10:53 am Post subject: |
|
|
I support this very much. This can be used for tons of new features. Monsters with multiple attack patterns (without any ACS!) come to mind first of course but I'm sure there's a lot more.
Note: I remember Worst mentioning something about "Unknown 1" and "Unknown 2" fields. I remember there's some problem about using them on weapon frames because of some "offsets".. So maybe Args1 and Args2 should be used instead. |
|
Back to top |
|
|
Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Fri Aug 29, 2014 2:27 pm Post subject: |
|
|
Sr69Mm-jC wrote: | Note: I remember Worst mentioning something about "Unknown 1" and "Unknown 2" fields. I remember there's some problem about using them on weapon frames because of some "offsets".. So maybe Args1 and Args2 should be used instead. |
This is known and that's why PlaySound and PlayWeaponSound coexist now. PlaySound is directly coming from MBF without any difference and it is meant to be used with actor frames. PlayWeaponSound on the other hand is Zdaemon exclusive addition so we have it for weapon frames as well. My request here is to directly port RandomJump from MBF for actor frames (same way as devs did with PlaySound). If we used Args1/Args2 instead of MBF's Unk1/Unk2 pattern would be an impact on compatibility, and in the end you need to have two codepointers for actor and weapon use anyway. As for now, I'd pretty happy with the actor variant implemented as per request.
Last edited by Body-Guard on Fri Aug 29, 2014 2:33 pm; edited 2 times in total |
|
Back to top |
|
|
Aeyesx Dominating!
Joined: 13 Oct 2012
|
|
Back to top |
|
|
Kilgore Air Cavalry
Joined: 17 Jun 2003 Location: Up the river
|
Posted: Wed Sep 17, 2014 8:11 pm Post subject: |
|
|
Check the changelog.
It will show up on the next release (110b03). |
|
Back to top |
|
|
TheCupboard Generic Title
Joined: 25 Feb 2007 Location: USA
|
Posted: Wed Sep 17, 2014 8:41 pm Post subject: |
|
|
This is always a thankless job, but here I am bundled to the gills with appreciation because people are still maintaining this port after all these years. |
|
Back to top |
|
|
Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Thu Sep 18, 2014 9:00 am Post subject: |
|
|
Kilgore wrote: | Check the changelog.
It will show up on the next release (110b03). |
Simply awesome Thanks |
|
Back to top |
|
|
Aeyesx Dominating!
Joined: 13 Oct 2012
|
Posted: Thu Sep 18, 2014 1:46 pm Post subject: |
|
|
Kilgore wrote: | Check the changelog.
It will show up on the next release (110b03). |
thanks alot, rocking
|
|
Back to top |
|
|
Sr69Mm-jC Unstoppable!
Joined: 21 Jul 2011
|
Posted: Thu Sep 18, 2014 3:54 pm Post subject: |
|
|
What both people above said. |
|
Back to top |
|
|
Kilgore Air Cavalry
Joined: 17 Jun 2003 Location: Up the river
|
Posted: Thu Sep 18, 2014 5:51 pm Post subject: |
|
|
I appreciate the good words guys, but thanks are mostly due to Body-Guard for bringing up the idea and to Sr69Mm-jC for doing research and providing test wads. This wouldn't have been implemented if it were not for those individuals. At any rate, I'm sure that mappers will put it to good use |
|
Back to top |
|
|
Cybershark Spamming!
Joined: 05 Jan 2005 Location: off the grid, but still fighting for the users!
|
Posted: Wed Oct 22, 2014 2:43 am Post subject: |
|
|
This, and some of the other recently added ACS/DEH cross-compatible functionality are exciting to see, so it's great that they're now possible.
Such a shame you need a Phd in DEHSUPP to be able to use them effectively :/ |
|
Back to top |
|
|
Sr69Mm-jC Unstoppable!
Joined: 21 Jul 2011
|
Posted: Wed Oct 22, 2014 12:11 pm Post subject: |
|
|
Cybershark wrote: | Such a shame you need a Phd in DEHSUPP to be able to use them effectively :/ |
Why? A lot of things are doable with "vanilla" dehacked. If you need more you could simply load worst's DEHSUPP lump into your wad and just use it. I mean, truth is, I've been using heretic/hexen stuff for a while now and I still have no clue how to compile dehsupp. My point is, there's still a LOT you can do without a "Phd in dehsupp". |
|
Back to top |
|
|
Maikl_Russia has entered the game!
Joined: 18 Jul 2005 Location: RU
|
Posted: Wed May 18, 2016 11:33 pm Post subject: |
|
|
Unfortunately, for 1.5 years no one bothered to check this codepointer online.
In single mode all works fine but in c/s - no.
Test wad |
|
Back to top |
|
|
Aeyesx Dominating!
Joined: 13 Oct 2012
|
Posted: Thu May 19, 2016 7:39 am Post subject: |
|
|
Hmm I think I knew it, but I though it got fixed later on |
|
Back to top |
|
|
Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Fri May 20, 2016 9:55 am Post subject: |
|
|
I gonna check it when I get home. I use this feature in a beta version of my wad, but it wasn't played online yet. |
|
Back to top |
|
|
|