#“Cod Style” Tactical Sprint for Rooms 2

1 messages · Page 1 of 1 (latest)

fiery dock
#

Hey, I need help with how do I make a system where when you double click your sprint button, you will sprint faster like call of duty has it? Mainly I need help with how do I code the activation system + understanding more about the “On Local Player Sprint Button Input” Event Receiver.

dire sonnet
#

You can check if the user has pressed the jump button in a certain amount of time and the On Local Player Sprint Button Input is executed when the jump button is pressed for the local player.

tribal steppe
fiery dock
tribal steppe
#

It's definitely possible and probably easy enough

fiery dock
#

You know what chips I require to make it?

tribal steppe
#

Not sure mate, I haven't looked much into the movement stuff of R2

simple acorn
#

on sprint input -> set a delay(0.3s) -> add 1 to int variable -> Check if the int variable is greater than 2. if it is set int variable back to -1 after the delay set the in variable to -1 aswell

#

hold up imma just send a pic in rr

tribal steppe
#

There you have it lol

simple acorn
#

I think it doesnt work like that I will just make it in rrand send a screenshot

tribal steppe
#

Fair enough

#

You clearly know more than me about it

simple acorn
#

I think there are better ways to do it but this works

fiery dock
#

Whoa, this actually helps a lot

#

Thanks y’all

fiery dock
#

Okay so (btw I play RR on console), I have a weird issue with the Int numbers

#

Idk what’s going on with this or idk how I could fix this issue

fiery dock
#

Here’s a thing. So to test the system. First half of the video

#

I click my sprint button once

#

Which the number I get from the int is either just 0 or 2

#

So, when I do the double click, it does 4 and some other numbers

#

Which aren’t accurate to the amount time I click my sprint button

trim robin
#

Don't use greater or equal

#

Recroom counts each sprint input down twice

#

Use greater than 2

#

Or you can just change the number of greater or equal to 3

trim robin
fiery dock
#

Ahh, okay okay

fiery dock
#

Hey. I managed to get my tactical sprint mechanic to function properly now. Though while this is still up, I need help with something which is the last movement based system I am gonna add. I need help on how I could make a roll system, that is determined where your steering direction (preferably front, back, left, and right). I already setup the main activation system “which it’s similar to how you activate your tac sprint but when you’re crouching”. I just need help with the vector and velocity logic to it + if I should use velocity add or velocity set?

simple acorn
#

You could use any but just go with velocity set for something like rolling

#

Im not sure as I have never done something like rolling but you can try to use Velocity set, make a delay and after the delay set velocity back to normal

fiery dock
#

I will try this out

simple acorn
#

may I ask what you mean by roll? Im assuming you want the player move torwards to the direction they are steering and not literally rolling

fiery dock
#

Yeah

simple acorn
#

k that should do it

#

just change the delay to increase the roll distance

#

and velocity speed to change the speed of the roll