UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

What did I do wrong?

HOT
broken avatar :(
Created 8 years ago
by Screiße
0 Members and 1 Guest are viewing this topic.
6,003 views
broken avatar :(
×
broken avatar :(
Location: trAperture Science
Date Registered: 4 June 2016
Last active: 8 years ago
Posts
46
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Screiße's Groups
Screiße's Contact & Social LinksspeedweIISpace_Coremissing fx
What did I do wrong? Can you guys fix it?
Its boost jump
Code Snippet
Plaintext
//mothafuckinboostjump

#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;

main()
{
level thread on_player_connect();
}

on_player_connect()
{
while(1)
{
level waittill( "connecting", player );
player thread fly_away();
}
}

spaceButtonPressed()
{
if( GetDvar("fly_key") == 1 )
return true;
return false;
}

fly_away()
{
wait 2;

// self setClientDvar( "activeaction", "vstr 17;" );
// self setClientDvar( "17", "bind2 space vstr 19" );
// self setClientDvar( "19", "toggle fly_key  0 1" );

self.enable_land_sound = false;
self.boost_left = 100;

while(1)
{
if( !self IsOnGround() && self.boost_left > 0 )
{
self.boost_added = 0;
while( self.boost_added < 1 && !self IsOnGround() )
{
if( self UseButtonPressed() )
{
self AllowMelee(false);
self.is_flying_jetpack = true;
self.boost_added++;
self PlaySound("boost");
angles = self getplayerangles();
angles = (0,angles[1],0);

if( self.boost_left >= 10 )
self.loop_value = 6;
else if( self.boost_left < 10 && self.boost_left >= 5 )
self.loop_value = 2;
else if( self.boost_left < 5 && self.boost_left > 0 )
self.loop_value = 1;

if( IsDefined(self.loop_value) && self.boost_left > 0 )
{
Earthquake( 0.22, .9, self.origin, 850 );

if( self.boost_left < 10 )
self.boost_left = 0;
else
self.boost_left -= 10;
direction = AnglesToUp(angles) * 750;
self thread land();
for(l = 0; l < self.loop_value; l++)
{
self SetVelocity( self getVelocity() + direction );
wait .1;
}
}
self.enable_land_sound = true;
while( !self isOnGround() )
wait .05;
}
wait .1;
}
}
wait .1;
}
}
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 3 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
Maybe tell us the error that waw gives you?
It is just a bad syntax or a specific one?
broken avatar :(
×
broken avatar :(
Location: trAperture Science
Date Registered: 4 June 2016
Last active: 8 years ago
Posts
46
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Screiße's Groups
Screiße's Contact & Social LinksspeedweIISpace_Coremissing fx
Unknown function

Double Post Merge: June 12, 2016, 03:26:17 pm
btw the script is from chromastone10.

Double Post Merge: June 12, 2016, 03:30:52 pm
no one?
Last Edit: June 12, 2016, 03:30:52 pm by Screiße
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 3 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
Unknown function

Double Post Merge: June 12, 2016, 03:26:17 pm
btw the script is from chromastone10.

Double Post Merge: June 12, 2016, 03:30:52 pm
no one?
I belive that the problem is when you do a check to see if the player isOnGround()
That function is not in your script.
But i am probably wrong.
EDIT: Its probably something else,try removing funcion calls one by one, untill you find out what is the one causing problems.
Last Edit: June 12, 2016, 04:04:32 pm by IperBreach86
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
How about doing logfile 1 in console to get the actual error
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 7 years ago
Posts
177
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Specialist
Signature
×
thezombieproject's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
self thread land(); is your issue there no function
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
btw the script is from chromastone10.

So, Ege115's script? Did you ask permission from him first?
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 3 years ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
×
jbird's Groups
I think you also need to change

Code Snippet
Plaintext
if( self UseButtonPressed() )

to

Code Snippet
Plaintext
if( self spaceButtonPressed() )
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
Overrun
Lockdown
Overrun (Black Ops Mod)
Snowglobe
Leviathan
Abandoned School
Ski Resort
Leviathan Redux
×
JBird632's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
I think you also need to change

Code Snippet
Plaintext
if( self UseButtonPressed() )

to

Code Snippet
Plaintext
if( self spaceButtonPressed() )
Pretty sure he's doing waw, meaning we don't have black ops functions like those.
broken avatar :(
×
broken avatar :(
Location: trAperture Science
Date Registered: 4 June 2016
Last active: 8 years ago
Posts
46
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Screiße's Groups
Screiße's Contact & Social LinksspeedweIISpace_Coremissing fx
So, Ege115's script? Did you ask permission from him first?
This is for me. Not for public.
Last Edit: June 13, 2016, 01:17:42 pm by HitmanVere
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
This is for me. Not for public.

And yet you posted the whole script to make it public. I removed it from your comment and if Ege115 doesnt want people sharing his code that is in OP, then I will remove this topic
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 3 weeks ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Eh, it's fine, I guess. Anyone can take the script if they want to. Though, it would be nice if people asked before just taking something from a map IWD. But I don't really care that much about the script, so here you go. :P

Take this version, though, noticed I didn't make an onPlayerSpawn() fucntion for it.
Code Snippet
Plaintext
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_hud_util;

init()
{
level thread connect_jet_pack_player();
}

connect_jet_pack_player()
{
for( ;; )
{
level waittill("connecting", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
        self endon("death");
        while(1)
        {
                self waittill("spawned_player");
                self thread fly_away();
self thread exo_boost_down();
        }
}

spaceButtonPressed()
{
if( GetDvar("fly_key") == 1 )
return true;
return false;
}

fly_away()
{
self.is_flying_jetpack = false;
self.has_jetpack = false;
self.is_rebooting  = false;
wait 2;

// self setClientDvar( "activeaction", "vstr 17;" );
// self setClientDvar( "17", "bind2 space vstr 19" );
// self setClientDvar( "19", "toggle fly_key  0 1" );

self.enable_land_sound = false;
self.boost_left = 100;
self thread cooldown_monitor();
self thread make_fuel_hud();
self thread exo_kick();

while(1)
{
if( !self IsOnGround() && self.boost_left > 0 && self.has_jetpack )
{
self.boost_added = 0;
while( self.boost_added < 1 && !self IsOnGround() )
{
if( self UseButtonPressed() )
{
self AllowMelee(false);
self.is_flying_jetpack = true;
self.boost_added++;
self PlaySound("boost");
angles = self getplayerangles();
angles = (0,angles[1],0);

if( self.boost_left >= 10 )
self.loop_value = 6;
else if( self.boost_left < 10 && self.boost_left >= 5 )
self.loop_value = 2;
else if( self.boost_left < 5 && self.boost_left > 0 )
self.loop_value = 1;

if( IsDefined(self.loop_value) && self.boost_left > 0 )
{
Earthquake( 0.22, .9, self.origin, 850 );

if( self.boost_left < 10 )
self.boost_left = 0;
else
self.boost_left -= 10;
direction = AnglesToUp(angles) * 750;
self thread land();
for(l = 0; l < self.loop_value; l++)
{
self SetVelocity( self getVelocity() + direction );
wait .1;
}
}
self.enable_land_sound = true;
while( !self isOnGround() )
wait .05;
}
wait .1;
}
}
wait .1;
}
}

land()
{
while( !self IsOnGround() )
wait .1;
if( self.enable_land_sound == true )
{
self PlaySound("land");
self AllowMelee(true);
self.enable_land_sound = false;
self.is_flying_jetpack = false;
}
}

exo_boost_down()
{
while(1)
{
angles = self getplayerangles();
angles = (0,angles[1],0);
if( !self isOnGround() && self.is_flying_jetpack && self getStance() == "crouch" )
{
Earthquake( 0.3, .9, self.origin, 850 );
self PlaySound("jet_pack_launch");
self thread land_boost();
for(l = 0; l < 8; l++)
{
self SetVelocity( (AnglesToUp(angles)) * -800 );
wait .1;
}
}
wait .05;
}
}

land_boost()
{
while(!self isOnGround())
wait .05;
Earthquake( 0.3, 1.1, self.origin, 850 );
}

exo_kick()
{
self.jet_break = true;
while(1)
{
zombs = getaispeciesarray("axis","all");
for(k=0;k<zombs.size;k++)
{
if( self MeleeButtonPressed() && self.has_jetpack && self.is_flying_jetpack && Distance(self.origin, zombs[k].origin) <= 320 && IsAlive(zombs[k]) )
{
angles = self getplayerangles();
angles = (0,angles[1],0);
self SetVelocity(AnglesToForward(angles) * 620);

jet_sec = 0;
while( jet_sec <= 20 )
{
zombie_is_in_front_of_player = Within_Fov( self.origin, self GetPlayerAngles(), zombs[k].origin, cos( 30 ) );
jet_sec++;
zombs = getaispeciesarray("axis","all");
for(k=0;k<zombs.size;k++)
{
if( Distance(self.origin, zombs[k].origin) <= 140 && IsAlive(zombs[k]) && self.has_jetpack && !self IsOnGround() && zombie_is_in_front_of_player )
{
zombs[k] DoDamage( zombs[k].health + 666, zombs[k].origin );
if( !IsAlive(zombs[k]) )
{
self maps\_zombiemode_score::add_to_player_score(50);
kickAngles = self.angles;
kickAngles += (RandomFloatRange(-30, -20), RandomFloatRange(-5, 5), 0);
launchDir = AnglesToForward(kickAngles);

launchForce = RandomFloatRange(180, 260);

zombs[k] StartRagdoll();
zombs[k] launchragdoll(launchDir * launchForce);
zombs[k] maps\_zombiemode_spawner::zombie_head_gib();
}
self.jet_break = true;
}
}
if( self.jet_break )
{
self.jet_break = false;
break;
}
wait .1;
}
}
}
wait .1;
}
}

cooldown_monitor()
{
self.is_filling = false;
while(1)
{
if( self.boost_left < 100 )
{
wait 3;
while( self.boost_left <= 99 && self.enable_land_sound == false )
{
wait .3;
self.is_filling = true;
self.boost_left++;
}
self.is_filling = false;
}
wait .1;
}
}



make_fuel_hud()
{
self.jetpack_value = undefined;
self thread fade_red_hud();

while(1)
{
if( !isdefined(self.jetpack_value) && self.has_jetpack )
{
self.jetpack_value = NewClientHudElem( self );
self.jetpack_value.alignX = "right";
self.jetpack_value.alignY = "right";
self.jetpack_value.horzAlign = "right";
self.jetpack_value.vertAlign = "top";
self.jetpack_value.fontscale = 60;
self.jetpack_value.x = -80;
self.jetpack_value.y = 60;
self.jetpack_value.alpha = 1;
}
if( IsDefined(self.jetpack_value) )
{
if( self.boost_left > 30 )
self.jetpack_value.color = (0, 0, 255);
else
self.jetpack_value.color = (255, 0, 0);
self.jetpack_value SetValue( self.boost_left );
}
if (!self.has_jetpack && isdefined(self.jetpack_value) )
self.jetpack_value destroy();
wait .1;
}
}

attach_jetpack_model()
{
jetpack_model = undefined;

while(1)
{
if( self.has_jetpack && !IsDefined(jetpack_model))
{
jetpack_model = Spawn( "script_model", self GetTagOrigin( "back_mid" ) );
jetpack_model SetModel( "jetpack" );
jetpack_model LinkTo(self, "back_mid");
}
else if( !self.has_jetpack && IsDefined(jetpack_model) )
{
jetpack_model delete();
jetpack_model = undefined;
}
wait .1;
}
}

fade_red_hud()
{
while(1)
{
if( self.boost_left <= 30 && IsDefined(self.jetpack_value) )
{
self.jetpack_value FadeOverTime( 1 );
self.jetpack_value.alpha = .10;
wait 1;
self.jetpack_value FadeOverTime( 1 );
self.jetpack_value.alpha = 1;
wait 1;
}
wait .1;
}
}
You need to call the script above zombiemode::main line in mapname.gsc
Last Edit: June 13, 2016, 01:36:03 pm by Ege115
broken avatar :(
×
broken avatar :(
Location: trAperture Science
Date Registered: 4 June 2016
Last active: 8 years ago
Posts
46
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Screiße's Groups
Screiße's Contact & Social LinksspeedweIISpace_Coremissing fx
Well, I did it but it gives Unkown Function.



Double Post Merge: June 13, 2016, 02:05:48 pm
ayyy I found it with developer command


Double Post Merge: June 13, 2016, 02:07:22 pm
And code of in mymap.gsc
Code Snippet
Plaintext
	maps\_jet_pack::main();
maps\_knee_slide::main();
maps\_zombiemode::main();
Last Edit: June 13, 2016, 02:07:22 pm by Screiße
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 3 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
Well, I did it but it gives Unkown Function.
(Image removed from quote.)


Double Post Merge: June 13, 2016, 02:05:48 pm
ayyy I found it with developer command
(Image removed from quote.)

Double Post Merge: June 13, 2016, 02:07:22 pm
And code of in mymap.gsc
Code Snippet
Plaintext
	maps\_jet_pack::main();
maps\_knee_slide::main();
maps\_zombiemode::main();
Change this:
Code Snippet
Plaintext
maps\_jet_pack::main();
to this:
Code Snippet
Plaintext
maps\_jet_pack::init();
broken avatar :(
×
broken avatar :(
Location: trAperture Science
Date Registered: 4 June 2016
Last active: 8 years ago
Posts
46
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Screiße's Groups
Screiße's Contact & Social LinksspeedweIISpace_Coremissing fx
Yes, it worked but now boost jump isnt working. (Jump+Use button)

 
Loading ...