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

bit of help still learning

broken avatar :(
Created 9 years ago
by lordkurt6
0 Members and 1 Guest are viewing this topic.
2,490 views
broken avatar :(
×
broken avatar :(
Location: usUsa
Date Registered: 21 July 2013
Last active: 1 month ago
Posts
53
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
lordkurt6's Groups
lordkurt6's Contact & Social LinkstehfeedzPryZeWaRVii
right when I goto the trigger in game it tell me to hit f on keyboard but nofink happeds like it not pressing the key
this script works in game as well with no errors

Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

PreCache_climb()
{
// precachemodel( "p6_zm_tm_dig_mound" );
precacheitem( "zombie_knuckle_crack" );
}

main()
{
player = get_players();
for(i=0;i<player.size;i++)
{
player[i].climb_done = true ;
trigger = GetEntArray("climbto","targetname");
array_thread(trigger, ::climbto1);
}
}

climbto1()
{
player = undefined;
self usetriggerrequirelookat();
self setCursorHint("HINT_NOICON");
self sethintstring( "Press and hold &&1 to climb up" );

while(player ButtonPressed())
{
self waittill( "trigger" , player );
if( player.climb_done == false )
{

climb = GetEntArray("climbto","targetname");
player.climb_done = false ;
climb = thread do_knuckle_crack();
self GiveWeapon( "zombie_knuckle_crack" );
wait 1;

while(player useButtonPressed())
{
if( player.climb_done == true )
{
climb = level.player setPlayerAngles((2,240,0));
climb iprintln( "setplayangles" );
player.climb_done = true ;
// player thread climbto2();
self delete();
wait 1;
}
}
wait 1;
}
}
}

do_knuckle_crack()
{
self DisableOffhandWeapons();
self DisableWeaponCycling();

self AllowLean(false);
self AllowAds(false);
self AllowSprint(false);
self AllowProne(false);
self AllowMelee(false);

if( self GetStance() == "prone" )
self SetStance("crouch");

// self ForceViewmodelAnimation("data_glove_cloak","reload");
gun = self GetCurrentWeapon();
self GiveWeapon( "zombie_knuckle_crack" );
self SwitchToWeapon( "zombie_knuckle_crack" );
self waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete", "buildable_complete" );

self EnableOffhandWeapons();
self EnableWeaponCycling();
self GiveWeapon( gun );
self SwitchToWeapon( gun );

self AllowLean(true);
self AllowAds(true);
self AllowSprint(true);
self AllowProne(true);
self AllowMelee(true);
self notify("knuckle_crack_done");
}

Double Post Merge: January 17, 2015, 11:46:23 am
right when I goto the trigger in game it tell me to hit f on keyboard but nofink happeds like it not pressing the key
this script works in game as well with no errors and this testing only everything changes one get past this bit

Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

PreCache_climb()
{
// precachemodel( "p6_zm_tm_dig_mound" );
precacheitem( "zombie_knuckle_crack" );
}

main()
{
player = get_players();
for(i=0;i<player.size;i++)
{
player[i].climb_done = true ;
trigger = GetEntArray("climbto","targetname");
array_thread(trigger, ::climbto1);
}
}

climbto1()
{
player = undefined;
self usetriggerrequirelookat();
self setCursorHint("HINT_NOICON");
self sethintstring( "Press and hold &&1 to climb up" );

while(player ButtonPressed())
{
self waittill( "trigger" , player );
if( player.climb_done == false )
{

climb = GetEntArray("climbto","targetname");
player.climb_done = false ;
climb = thread do_knuckle_crack();
self GiveWeapon( "zombie_knuckle_crack" );
wait 1;

while(player useButtonPressed())
{
if( player.climb_done == true )
{
climb = level.player setPlayerAngles((2,240,0));
climb iprintln( "setplayangles" );
player.climb_done = true ;
// player thread climbto2();
self delete();
wait 1;
}
}
wait 1;
}
}
}

do_knuckle_crack()
{
self DisableOffhandWeapons();
self DisableWeaponCycling();

self AllowLean(false);
self AllowAds(false);
self AllowSprint(false);
self AllowProne(false);
self AllowMelee(false);

if( self GetStance() == "prone" )
self SetStance("crouch");

// self ForceViewmodelAnimation("data_glove_cloak","reload");
gun = self GetCurrentWeapon();
self GiveWeapon( "zombie_knuckle_crack" );
self SwitchToWeapon( "zombie_knuckle_crack" );
self waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete", "buildable_complete" );

self EnableOffhandWeapons();
self EnableWeaponCycling();
self GiveWeapon( gun );
self SwitchToWeapon( gun );

self AllowLean(true);
self AllowAds(true);
self AllowSprint(true);
self AllowProne(true);
self AllowMelee(true);
self notify("knuckle_crack_done");
}
Last Edit: January 17, 2015, 11:46:23 am by lordkurt6
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
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.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
sorry to tell you, but there is a lot wrong with this script. It might not give error's because the syntax is ok, but it wont work for sure.. Lemme change it up a bit so it might do what it's upposed to, and you can look at that as an example of some stuff..
broken avatar :(
×
broken avatar :(
Location: usUsa
Date Registered: 21 July 2013
Last active: 1 month ago
Posts
53
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
lordkurt6's Groups
lordkurt6's Contact & Social LinkstehfeedzPryZeWaRVii
thanks dude ur so helpful im trying my hardsts understand what im making it hard as i have to see it my way but yh that how been learning from others scripts but still learning thanks for ur time to

Double Post Merge: January 17, 2015, 12:34:46 pm
and also could u add code so make player jump like super jump i pick how high i can jum if make u understand mate
Last Edit: January 17, 2015, 12:34:46 pm by lordkurt6
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
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.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

PreCache_climb()
{
// precachemodel( "p6_zm_tm_dig_mound" );
precacheitem( "zombie_knuckle_crack" );
}

main()
{
player = get_players();
for(i=0;i<player.size;i++)
{
player[i].climb_done = false ;
}

trigger = GetEntArray("climbto","targetname");
array_thread(trigger, ::climbto1);
}

climbto1()
{
player = undefined;
self usetriggerrequirelookat();
self setCursorHint("HINT_NOICON");
self sethintstring( "Press and hold &&1 to climb up" );

while(1)
{
self waittill( "trigger" , player );
if( player.climb_done == false )
{
player.climb_done = true ;
player do_knuckle_crack();
}

if( player.climb_done == true )
{
player setPlayerAngles((2,240,0));
player iprintln( "setplayangles" );
player.climb_done = false ;
// player thread climbto2();
// self delete();                                    // if you delete the trigger, you can only use it once??
wait 1;
}
}
}

do_knuckle_crack()
{
self DisableOffhandWeapons();
self DisableWeaponCycling();

self AllowLean(false);
self AllowAds(false);
self AllowSprint(false);
self AllowProne(false);
self AllowMelee(false);

if( self GetStance() == "prone" )
self SetStance("crouch");

// self ForceViewmodelAnimation("data_glove_cloak","reload");
gun = self GetCurrentWeapon();
self GiveWeapon( "zombie_knuckle_crack" );
self SwitchToWeapon( "zombie_knuckle_crack" );
self waittill_any( "fake_death", "death", "player_downed", "weapon_change_complete", "buildable_complete" );

self EnableOffhandWeapons();
self EnableWeaponCycling();
self GiveWeapon( gun );
self SwitchToWeapon( gun );

self AllowLean(true);
self AllowAds(true);
self AllowSprint(true);
self AllowProne(true);
self AllowMelee(true);
self notify("knuckle_crack_done");
}

I havent tested it, all it should do is play the knuckle crack, and set the player angles. Not sure why you are using the .climb_done stuff tbh, so this is the best i could do...
broken avatar :(
×
broken avatar :(
Location: usUsa
Date Registered: 21 July 2013
Last active: 1 month ago
Posts
53
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
lordkurt6's Groups
lordkurt6's Contact & Social LinkstehfeedzPryZeWaRVii
only way use the superjump by trigger but it going br hard as what aiming at was so everytime hit trigger play anim that climb which is easy hopefully but then super jump at the same time but then anim might be well of in time in game

 
Loading ...