Dead by Daylight 180 spin script help
Moderator: antithesis
21 posts
• Page 1 of 3 • 1, 2, 3
Dead by Daylight 180 spin script help
Could someone make a script where
RT is up joystick => left joystick => down joystick => right joystick
And
LT is up joystick => right joystick => down joystick=> left joystick
And let me know how to change the timing in between the buttons please. The timing has to be perfected.
I dont know if anyone has ever played this game and has heard of the 72hr juke but heres an example fast forward to 3:35 https://youtu.be/XA6PjQIjLBM
Thanks
RT is up joystick => left joystick => down joystick => right joystick
And
LT is up joystick => right joystick => down joystick=> left joystick
And let me know how to change the timing in between the buttons please. The timing has to be perfected.
I dont know if anyone has ever played this game and has heard of the 72hr juke but heres an example fast forward to 3:35 https://youtu.be/XA6PjQIjLBM
Thanks
Last edited by MAC on Sat Aug 11, 2018 4:48 pm, edited 1 time in total.
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 360 spin script help
- Code: Select all
#define CIRCLE_RADIUS_RT -30.0
#define CIRCLE_RADIUS_LT 30.0
#define CIRCLE_STEP_RT -0.01
#define CIRCLE_STEP_LT 0.01
#define CIRCLE_SPEED_RT 1
#define CIRCLE_SPEED_LT 1
fix32 angle_RT;
fix32 angle_LT;
main {
if(get_actual(BUTTON_5)){
set_val(STICK_2_X, CIRCLE_RADIUS_RT * cos(angle_RT));
set_val(STICK_2_Y, CIRCLE_RADIUS_RT * sin(angle_RT));
combo_run(AutoCircle_RT);
if(is_active(STICK_2_Y)|| is_active(STICK_2_X)) {
combo_stop(AutoCircle_RT);
}
}
if(get_actual(BUTTON_8)){
set_val(STICK_2_X, CIRCLE_RADIUS_LT * cos(angle_LT));
set_val(STICK_2_Y, CIRCLE_RADIUS_LT * sin(angle_LT));
combo_run(AutoCircle_LT);
if(is_active(STICK_2_Y) || is_active(STICK_2_X)) {
combo_stop(AutoCircle_LT);
}
}
}
combo AutoCircle_RT
{
wait(CIRCLE_SPEED_RT);
angle_RT = mod(angle_RT + CIRCLE_STEP_RT, 2.0 * PI);
}
combo AutoCircle_LT
{
wait(CIRCLE_SPEED_LT);
angle_LT = mod(angle_LT + CIRCLE_STEP_LT, 2.0 * PI);
}
Do all your adjusting up top in define section.
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Dead by Daylight 360 spin script help
Thanks i'll attempt to figure this out.
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 360 spin script help
The combo works perfectly. Except I cant figure out how to instantly walk straight right after the combo, I get a huge pause when I transition to the joystick.When I hold the trigger he continuously goes in a circle. Is there a way to add walk straight right after the combo instead of loop? Also its technically a 180 since I'm going the opposite direction. So could you make it a 180? Thanks for the help.
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 180 spin script help
- Code: Select all
#define CIRCLE_RADIUS_RT -100.0
#define CIRCLE_RADIUS_LT 100.0
#define CIRCLE_STEP_RT -0.01
#define CIRCLE_STEP_LT 0.01
#define CIRCLE_SPEED_RT 1
#define CIRCLE_SPEED_LT 1
fix32 angle_RT;
fix32 angle_LT;
bool stop_flag;
main {
if(get_val(BUTTON_5) && stop_flag == 0){
set_val(STICK_2_X, CIRCLE_RADIUS_RT * cos(angle_RT));
set_val(STICK_2_Y, CIRCLE_RADIUS_RT * sin(angle_RT));
combo_run(AutoCircle_RT);
}
if(is_active(STICK_2_Y)|| is_active(STICK_2_X)) {
combo_stop(AutoCircle_RT);
}else stop_flag = 0;
if(get_val(BUTTON_8) && stop_flag == 0){
set_val(STICK_2_X, CIRCLE_RADIUS_LT * cos(angle_LT));
set_val(STICK_2_Y, CIRCLE_RADIUS_LT * sin(angle_LT));
combo_run(AutoCircle_LT);
}
if(is_active(STICK_2_Y) || is_active(STICK_2_X)) {
stop_flag = 1;
combo_stop(AutoCircle_LT);
}else stop_flag = 0;
}
combo AutoCircle_RT
{
wait(CIRCLE_SPEED_RT);
angle_RT = mod(angle_RT + CIRCLE_STEP_RT, 2.0 * PI);
}
combo AutoCircle_LT
{
wait(CIRCLE_SPEED_LT);
angle_LT = mod(angle_LT + CIRCLE_STEP_LT, 2.0 * PI);
}
Here try walking out when you need too or I have to build different.
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Dead by Daylight 180 spin script help
I'll test it later thanks
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 180 spin script help
- Code: Select all
#pragma METAINFO("LT circle RT circle", 1, 0, "bonefisher")
#define CIRCLE_RADIUS_RT -100.0
#define CIRCLE_RADIUS_LT 100.0
#define CIRCLE_STEP_RT -0.01
#define CIRCLE_STEP_LT 0.01
#define CIRCLE_SPEED_RT 1
#define CIRCLE_SPEED_LT 1
fix32 angle_RT;
fix32 angle_LT;
bool stop_flag;
main {
if(get_val(BUTTON_5) && stop_flag == 0){
set_val(STICK_2_X, CIRCLE_RADIUS_RT * cos(angle_RT));
set_val(STICK_2_Y, CIRCLE_RADIUS_RT * sin(angle_RT));
combo_run(AutoCircle_RT);
}
if(is_active(STICK_2_Y)|| is_active(STICK_2_X)) {
stop_flag = 1;
combo_stop(AutoCircle_RT);
}else stop_flag = 0;
if(get_val(BUTTON_8) && stop_flag == 0){
set_val(STICK_2_X, CIRCLE_RADIUS_LT * cos(angle_LT));
set_val(STICK_2_Y, CIRCLE_RADIUS_LT * sin(angle_LT));
combo_run(AutoCircle_LT);
}
if(is_active(STICK_2_Y) || is_active(STICK_2_X)) {
stop_flag = 1;
combo_stop(AutoCircle_LT);
}else stop_flag = 0;
}
combo AutoCircle_RT
{
wait(CIRCLE_SPEED_RT);
angle_RT = mod(angle_RT + CIRCLE_STEP_RT, 2.0 * PI);
}
combo AutoCircle_LT
{
wait(CIRCLE_SPEED_LT);
angle_LT = mod(angle_LT + CIRCLE_STEP_LT, 2.0 * PI);
}
Here forgot one stop!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Dead by Daylight 180 spin script help
bonefisher wrote:Here forgot one stop!
Dont cut the red wire! Lol. That's what your comment reminds me of. I'll check it out. Thanks
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 180 spin script help
The spin is perfect. I don't think I explained it good enough last time. I want to do the spin while holding down the trigger but start walking straight right after the spin while still holding down the trigger. Sorry about that.
-
MAC - Master Sergeant
- Posts: 39
- Joined: Fri Apr 13, 2018 7:13 pm
Re: Dead by Daylight 180 spin script help
I'm going to bed maybe get around to it tomorrow!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
21 posts
• Page 1 of 3 • 1, 2, 3
Return to XIM Apex, XIM4, XIM Edge with Titan devices
Who is online
Users browsing this forum: No registered users and 77 guests