Post: more coding questions
04-14-2012, 02:18 PM #1
GE90
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); how to add Menu Shader to Dcconners menu? and the C++ codes for super jump and super speed
(adsbygoogle = window.adsbygoogle || []).push({});
04-14-2012, 04:58 PM #2
h4344
Haxor!
Do you mean the color of the menu's background when you open it? And 1 sec ill grab the codes for super jump and super speed.

Super Jump-

    superJump(){
if(self.IsAdmin){
if(getDvarInt("jump_height")!=999){
self thread ccTXT("Super Jump - On");
setDvar("jump_height",999);
setDvar("bg_fallDamageMaxHeight",9999);
setDvar("bg_fallDamageMinHeight",999Cool Man (aka Tustin);
}else{
self thread ccTXT("Super Jump - Off");
setDvar("jump_height",39);
setDvar("bg_fallDamageMaxHeight",300);
setDvar("bg_fallDamageMinHeight",12Cool Man (aka Tustin);
}
}
}


Super Speed-

    superSpeed(){
if (!self.efx){self setClientDvar("g_speed",999);
self setClientDvar( "player_sprintUnlimited", "1" );
self thread ccTXT("SuperSpeed - On");
self.efx=true;
}else{
self thread ccTXT("SuperSpeed - Off");
self setClientDvar("g_speed",190);
self setClientDvar( "player_sprintUnlimited", "0" );
self.efx=false;
}
}
04-14-2012, 05:07 PM #3
GE90
< ^ > < ^ >
Originally posted by h4344 View Post
Do you mean the color of the menu's background when you open it? And 1 sec ill grab the codes for super jump and super speed.

Super Jump-

    superJump(){
if(self.IsAdmin){
if(getDvarInt("jump_height")!=999){
self thread ccTXT("Super Jump - On");
setDvar("jump_height",999);
setDvar("bg_fallDamageMaxHeight",9999);
setDvar("bg_fallDamageMinHeight",999Cool Man (aka Tustin);
}else{
self thread ccTXT("Super Jump - Off");
setDvar("jump_height",39);
setDvar("bg_fallDamageMaxHeight",300);
setDvar("bg_fallDamageMinHeight",12Cool Man (aka Tustin);
}
}
}


Super Speed-

    superSpeed(){
if (!self.efx){self setClientDvar("g_speed",999);
self setClientDvar( "player_sprintUnlimited", "1" );
self thread ccTXT("SuperSpeed - On");
self.efx=true;
}else{
self thread ccTXT("SuperSpeed - Off");
self setClientDvar("g_speed",190);
self setClientDvar( "player_sprintUnlimited", "0" );
self.efx=false;
}
}


THANKS BRO, can you help with more
04-14-2012, 05:09 PM #4
h4344
Haxor!
Originally posted by GE90 View Post
THANKS BRO, can you help with more


Ya sure ill help with as much as i can, im still new to the whole modding deal but im learning.
04-14-2012, 05:23 PM #5
GE90
< ^ > < ^ >
Originally posted by h4344 View Post
Ya sure ill help with as much as i can, im still new to the whole modding deal but im learning.
do you have a 3.55 ps3?

---------- Post added at 01:23 PM ---------- Previous post was at 01:20 PM ----------

Originally posted by h4344 View Post
Ya sure ill help with as much as i can, im still new to the whole modding deal but im learning.

btw, i need the super jump as a menu command, do I just add the dvar and name it as a fuction like:



menu.func = ::superJump;




superJump(){
if(self.IsAdmin){
if(getDvarInt("jump_height")!=999){
self thread ccTXT("Super Jump - On");
setDvar("jump_height",999);
setDvar("bg_fallDamageMaxHeight",9999);
setDvar("bg_fallDamageMinHeight",999Cool Man (aka Tustin);
}else{
self thread ccTXT("Super Jump - Off");
setDvar("jump_height",39);
setDvar("bg_fallDamageMaxHeight",300);
setDvar("bg_fallDamageMinHeight",12Cool Man (aka Tustin);
}
}
}
04-14-2012, 05:29 PM #6
h4344
Haxor!
Nah i roll PC, i have noticed though that alot of the code is pretty much the same for both. And ya for the menu you could just add menu.func = ::superJump; although im pretty sure the code would have to be in the same file unless you add the directory before the function.

The following user thanked h4344 for this useful post:

GE90
04-17-2012, 12:33 AM #7
FoxkaZ
Retired Super
Question answered.

Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo