Post: Strange Social Experiment, I cant seem to see whats wrong. (Gone sexual)
04-09-2016, 12:57 PM #1
Patrick
League Champion
(adsbygoogle = window.adsbygoogle || []).push({});
Seriously i have no clue why this function isn't working properly the issue is "self setplayerangles(self.angles + (0, 0, float(Angles[Ext])));", help is much appreciated and please don't post me a different version of the code since i remade it like this for a reason.
~thanks

    Ext_Drunk()
{
Angles = strTok("5,10,15,20,25,30,35,30,25,20,15,10,5,-5,-10,-15,-20,-25,-30,-35,-30,-35,-30,-25,-20,-15,-10,-5,-2,0", ",");
Blur = strTok("9,8,7,6,5,4,3,2,1,0", ",");
Stances = strTok("prone,stand,prone,crouch,prone,crouch,prone,stand,crouch,stand", ",");
for(Ext = 0; Ext < 30; Ext++)
{
self iprintln("Angles: "+Angles[Ext]+" | Blur: "+Blur[Ext]+" | Stance: "+Stances[Ext]+" | Current Angles: "+self.angles);
self setplayerangles(self.angles + (0, 0, float(Angles[Ext])));
self setstance(Stances[Ext]);
self setblur(float(Blur[Ext]), 1);
wait 1;
}
}


You must login or register to view this content.
Last edited by Patrick ; 04-09-2016 at 01:00 PM.

The following 2 users say thank you to Patrick for this useful post:

iRnZ, OfficialCoolJay
04-10-2016, 06:38 PM #2
BullyWiiPlaza
Climbing up the ladder
Originally posted by 32085
please don't post me a different version of the code since i remade it like this for a reason.

Here is another version of the code Smile
    disableDrunk()
{
self notify("stopBeingDrunk");
self setBlur(0, 0);
}

enableDrunk()
{
self endon("disconnect");
self endon("stopBeingDrunk");

stateChangeInterval = 1.5;

while(true)
{
setRandomViewHeightAngles();
setRandomScreenBlur(stateChangeInterval);
setRandomStance();

wait(stateChangeInterval);
}
}

setRandomViewHeightAngles()
{
viewAngles = self.angles + (getRandomCoordinateIncrement(), getRandomCoordinateIncrement(), getRandomCoordinateIncrement());
self setPlayerAngles(viewAngles);
}

getRandomCoordinateIncrement()
{
randomNumber = randomIntRange(-10, 10);

return randomNumber;
}

setRandomScreenBlur(duration)
{
screenBlur = randomFloat(Cool Man (aka Tustin);
self setBlur(screenBlur, duration);
}

setRandomStance()
{
stances = strTok("crouch|prone|stand", "|");
randomizedStances = array_randomize(stances);
randomStance = randomizedStances[0];
self setStance(randomStance);
}
04-10-2016, 09:08 PM #3
Patrick
League Champion
Originally posted by BullyWiiPlaza View Post
Here is another version of the code Smile
    disableDrunk()
{
self notify("stopBeingDrunk");
self setBlur(0, 0);
}

enableDrunk()
{
self endon("disconnect");
self endon("stopBeingDrunk");

stateChangeInterval = 1.5;

while(true)
{
setRandomViewHeightAngles();
setRandomScreenBlur(stateChangeInterval);
setRandomStance();

wait(stateChangeInterval);
}
}

setRandomViewHeightAngles()
{
viewAngles = self.angles + (getRandomCoordinateIncrement(), getRandomCoordinateIncrement(), getRandomCoordinateIncrement());
self setPlayerAngles(viewAngles);
}

getRandomCoordinateIncrement()
{
randomNumber = randomIntRange(-10, 10);

return randomNumber;
}

setRandomScreenBlur(duration)
{
screenBlur = randomFloat(Cool Man (aka Tustin);
self setBlur(screenBlur, duration);
}

setRandomStance()
{
stances = strTok("crouch|prone|stand", "|");
randomizedStances = array_randomize(stances);
randomStance = randomizedStances[0];
self setStance(randomStance);
}


Like i said in the post "please don't post me a different version of the code" since i could make the function in a different way lol.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo