Page 3 of 4

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Wed May 18, 2016 1:35 pm
by Jekyll Grim Payne
Hey, sorry for resurrecting it like this, but it's actually something I've wanted for a while. But I have a question: is there any way to tie this to the moment of landing after a jump?
This may be too specific, but the thing is that slippery movement itself suits Doom just fine. However, it makes any jumping puzzles feel horrible, weird and discouraged me from making them ever. If there was any way to make the doom guy NOT slide after landing but do it in any other case, that would be amazing. For now I can't wrap my head around it though.

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Wed May 18, 2016 3:53 pm
by doony
this is wonderful, a better relistic experience playing the game without mario physics, the control flows solid and precise, thank you very much, if I was a doomworld user I would definitively vote this for the best mod of the year as far 2016 goes

(edit)
oh, this is from 2013?

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Fri May 20, 2016 3:51 pm
by scalliano
Combine this with the GZShmup mod and you're golden.

EDIT: Ah, just saw the date.

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Mon Nov 13, 2017 8:54 pm
by agenten
Is it in poor taste to necrobump this just to tell you how much I appreciate it? This is almost EXACTLY what I need for my TC. Thank you 2013 Nash, from 2017 me.
(of course I would love to see an engine-supported solution that works in netplay--an Actor accel/deccel property in Decorate would be ideal, if only...)


scalliano wrote:Combine this with the GZShmup mod and you're golden.

EDIT: Ah, just saw the date.


I still second this.

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Tue Nov 14, 2017 1:35 am
by Nash
You're welcome agenten!

I have an updated, ZScriptified version that works(tm) in netplay just fine, but I'm currently ultra busy (moving houses)... I'll be sure to post it up here ASAP

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Tue Feb 13, 2018 4:38 pm
by Zen3001
Nash wrote:You're welcome agenten!

I have an updated, ZScriptified version that works(tm) in netplay just fine, but I'm currently ultra busy (moving houses)... I'll be sure to post it up here ASAP

I hope you upload it here soon and haven't forgoten about it.
while you do that here is what I made by trying to zscript my first time, I#m also not a really good prgrammer so there might be issues I didn't notice.

Code: Select allExpand view
class AirControledDoomPlayer : DoomPlayer{
   Default{
      Speed 8.75;
   }
   override void MovePlayer(){
      Super.MovePlayer();
      if (floorz == pos.z){
         A_ScaleVelocity(0.45);
      }else{
         A_ScaleVelocity(1);
      }
   }
}


Jekyll Grim Payne wrote:Hey, sorry for resurrecting it like this, but it's actually something I've wanted for a while. But I have a question: is there any way to tie this to the moment of landing after a jump?
This may be too specific, but the thing is that slippery movement itself suits Doom just fine. However, it makes any jumping puzzles feel horrible, weird and discouraged me from making them ever. If there was any way to make the doom guy NOT slide after landing but do it in any other case, that would be amazing. For now I can't wrap my head around it though.


can work with zscript, If you can find a state or function for landing all you need to do is add A_Scalevelocity to it, I couldn't find any so here's what I did:
Code: Select allExpand view
   bool onfloor;
   
   override void MovePlayer(){
      Super.MovePlayer();
      if (floorz == pos.z){
         if (onfloor == False){
            A_ScaleVelocity(0.1);
            onfloor = True;
         }
      }else{
         onfloor = False;
      }
   }


Try only making it work when no movement key is pressed, it feels weird when the player loses all it's velocity for a moment and instantly start walking with full velocity again.

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Wed Feb 14, 2018 12:02 am
by zrrion the insect
I ended up doing something similar with zscript, but to avoid having to mess with player speed to counteract the velocity scaling I added a check in there that doesn't scale velocity if the player is pressing any of the movement keys.

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Wed Feb 14, 2018 12:25 am
by Zen3001
zrrion the insect wrote:I ended up doing something similar with zscript, but to avoid having to mess with player speed to counteract the velocity scaling I added a check in there that doesn't scale velocity if the player is pressing any of the movement keys.

wouldn't that make the movement slippery when you're moving in different directions?

Re: [CODE] Less Slippery Doom Movement (Dec 2013 update)

PostPosted: Wed Mar 21, 2018 11:30 am
by Turret49
Sorry for the bump here, but I'm having some problems.. is there any workaround for low friction sectors with this? Whenever I enter a slippery sector (easy example would be the ice in the hub map of Joy of Mapping 5), this script makes it turn into mud, as low friction sectors lower the amount of speed the PlayerPawn can accelerate per tic, while this script is constantly taking speed away.

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Sat May 26, 2018 6:03 am
by Nash
Mod is now fully re-written in ZScript. First post.

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Sat May 26, 2018 11:19 am
by Zen3001
can you upload it dropbox or something? I don't have the permission to download these forum files after breaking some rules.

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Sat Jun 02, 2018 9:01 pm
by wildweasel
I've been messing with this in my usual load order and have discovered a bug: if the player takes any damage, the "anti-slip" is temporarily dropped; this means things like being shot by Chaingunners or standing on damaging floors will cause you to be able to run abnormally fast for as long as you're continuing to take damage.

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Sat Jun 02, 2018 9:22 pm
by Nash
wildweasel wrote:I've been messing with this in my usual load order and have discovered a bug: if the player takes any damage, the "anti-slip" is temporarily dropped; this means things like being shot by Chaingunners or standing on damaging floors will cause you to be able to run abnormally fast for as long as you're continuing to take damage.


Ack, that's not good. I actually deliberately disabled the anti-slip when you were taking damage because I thought it was weird that a Baron slamming his fists in your face would make you barely move from the impact, but I suppose that wasn't a good idea after all...

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Thu Jun 07, 2018 7:18 pm
by BROS_ETT_311
Nash wrote:
wildweasel wrote:I've been messing with this in my usual load order and have discovered a bug: if the player takes any damage, the "anti-slip" is temporarily dropped; this means things like being shot by Chaingunners or standing on damaging floors will cause you to be able to run abnormally fast for as long as you're continuing to take damage.


Ack, that's not good. I actually deliberately disabled the anti-slip when you were taking damage because I thought it was weird that a Baron slamming his fists in your face would make you barely move from the impact, but I suppose that wasn't a good idea after all...



Ah, so that's what that is. Maybe it's possible to implement a damage threshold so that the "anti-slip" enables when the player receives hit points above a certain limit. Not sure if this would create more issues though...On another note, is there a way to factor in player movement while in mid-air? For instance, I've noticed this especially while playing The Trailblazer. The mod uses a system that pretty closely mimics bunnyhopping a la Quake. However, introducing nashmove causes the player's mid-air speed to scale up drastically while simultaneously conflicting with the on ground momentum, making it so you can't stack up your velocity per jump.
***p.s. Love your work! Both of you!
-cheers

Re: Less Slippery Doom Movement (May 2018 ZScript rewrite)

PostPosted: Tue Jun 12, 2018 1:22 pm
by Apeirogon
wildweasel wrote:I've been messing with this in my usual load order and have discovered a bug: if the player takes any damage, the "anti-slip" is temporarily dropped; this means things like being shot by Chaingunners or standing on damaging floors will cause you to be able to run abnormally fast for as long as you're continuing to take damage.

Sound reasonable. Because who in, sane state, would stand still when someone shoot at him/dissolve in suspicious liquid?!

Nash wrote:// TO DO: math here is shit and wrong, please fix

You mean this "friction hopping", right?!