Post: Tweak this code?
08-02-2015, 02:35 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I found a slide mod script earlier and I'm trying to understand how it works

It's suppose to slide me into the air, but instead it just forcefully yanks me to the side of the map

Here's the code, can anyone fix it?

    SlideAtCrosshair()
{
Start = self gettagorigin("j_head");
End = anglesToForward(self getplayerangles()) * 100000;
Destination = BulletTrace(Start,End,true,self)["position"];
level.Slide = spawn("script_model", Destination);
level.Slide setModel("t6_wpn_supply_drop_trap");
level.Slide.angles = (0,65,55);
for(;Winky Winky
{

if(distance(self.origin,level.Slide.origin) < 85)
if(isSubStr(self getCurrentWeapon(), "riotshield_mp") && self meleeButtonPressed())
{
self setVelocity(self getVelocity() + (0, 14000, 950));
wait .3;
}
wait .1;
}
}


I'm assuming it's because of the self setVelocity(self getVelocity() + (0, 14000, 950)); right?
(adsbygoogle = window.adsbygoogle || []).push({});
08-02-2015, 06:46 PM #2
itsSorrow
In my man cave
Originally posted by Gunner1997 View Post
So I found a slide mod script earlier and I'm trying to understand how it works

It's suppose to slide me into the air, but instead it just forcefully yanks me to the side of the map

Here's the code, can anyone fix it?

    SlideAtCrosshair()
{
Start = self gettagorigin("j_head");
End = anglesToForward(self getplayerangles()) * 100000;
Destination = BulletTrace(Start,End,true,self)["position"];
level.Slide = spawn("script_model", Destination);
level.Slide setModel("t6_wpn_supply_drop_trap");
level.Slide.angles = (0,65,55);
for(;Winky Winky
{

if(distance(self.origin,level.Slide.origin) < 85)
if(isSubStr(self getCurrentWeapon(), "riotshield_mp") && self meleeButtonPressed())
{
self setVelocity(self getVelocity() + (0, 14000, 950));
wait .3;
}
wait .1;
}
}


I'm assuming it's because of the self setVelocity(self getVelocity() + (0, 14000, 950)); right?


That code is all wrong
08-02-2015, 08:35 PM #3
Originally posted by GentleSlugger View Post
That code is all wrong


Would you happen to know how to properly do it?
08-02-2015, 08:39 PM #4
itsSorrow
In my man cave
Originally posted by Gunner1997 View Post
Would you happen to know how to properly do it?


Yes but you should try to figure it out yourself
08-02-2015, 09:27 PM #5
FRINZ
I’m too L33T
lol this the slide shit from the azza gsc
08-02-2015, 09:30 PM #6
itsSorrow
In my man cave
Originally posted by FRlNZ View Post
lol this the slide shit from the azza gsc


no its not
08-02-2015, 09:32 PM #7
itsSorrow
In my man cave
its from dis
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo