What's new

Discussion [Will Update]Codes that can be used in the nazi_zombie_prototype.ff

  • Thread starter Rdhnseueyie
  • Start date
  • Views 4,722
Mila Kunis

II UnLmTd III

Original Coder
Seasoned Veteran Grizzled Veteran
Messages
1,300
Reaction score
163
Points
175
Sin$
7
yeah there is no wait 4; or wait 0.4;
 
X

xxMatthewo

Enthusiast
Messages
244
Reaction score
21
Points
70
Sin$
0
where do you put the attachment codes because when i put it in preston.cfg it always goes over original size and should it look like this
bind DPAD_UP "statset 3000 4294967296 ; statset 3001 4294967296 ; statset 3002 4294967296 ; statset 3003 4294967296 ; statset 3004 4294967296 ; statset 3005 4294967296 ; statset 3006 4294967296 ; statset 3007 4294967296 ; statset 3008 4294967296 ; statset 3009 4294967296 ; statset 3010 4294967296 ; statset 3011 4294967296 ; statset 3012 4294967296 ; statset 3013 4294967296 ; statset 3014 4294967296 ; statset 3015 4294967296 ; statset 3016 4294967296 ; statset 3017 4294967296 ; statset 3018 4294967296 ; statset 3019 4294967296 ; statset 3020 4294967296 ; statset 3021 4294967296 ; statset 3022 4294967296 ; statset 3023 4294967296 ; statset 3024 4294967296 ; statset 3025 4294967296 ; statset 3026 4294967296 ; statset 3027 4294967296 ; statset 3028 4294967296 ; statset 3029 4294967296 ; statset 3030 4294967296 ; statset 3031 4294967296 ; statset 3032 4294967296 ; statset 3033 4294967296 ; statset 3034 4294967296 ; statset 3035 4294967296 ; statset 3036 4294967296 ; statset 3037 4294967296 ; statset 3038 4294967296 ; statset 3039 4294967296 ; statset 3040 4294967296 ; statset 3041 4294967296 ; statset 3042 4294967296 ; statset 3043 4294967296 ; statset 3044 4294967296 ; statset 3045 4294967296 ; statset 3046 4294967296 ; statset 3047 4294967296 ; statset 3048 4294967296 ; statset 3049 4294967296 ; statset 3050 4294967296 ; statset 3051 4294967296 ; statset 3052 4294967296 ; statset 3053 4294967296 ; statset 3054 4294967296 ; statset 3055 4294967296 ; statset 3056 4294967296 ; statset 3057 4294967296 ; statset 3058 4294967296 ; statset 3059 4294967296 ; statset 3060 4294967296 ; statset 3061 4294967296 ; statset 3062 4294967296 ; statset 3063 4294967296 ; statset 3064 4294967296 ; statset 3065 4294967296 ; statset 3066 4294967296 ; statset 3067 4294967296 ; statset 3068 4294967296 ; statset 3069 4294967296 ; statset 3070 4294967296 ; statset 3071 4294967296 ; statset 3072 4294967296 ; statset 3073 4294967296 ; statset 3074 4294967296 ; statset 3075 4294967296 ; statset 3076 4294967296 ; statset 3077 4294967296 ; statset 3078 4294967296 ; statset 3079 4294967296 ; statset 3080 4294967296 ; statset 3081 4294967296 ; statset 3082 4294967296 ; statset 3083 4294967296 ; statset 3084 4294967296 ; statset 3085 4294967296 ; statset 3086 4294967296 ; statset 3087 4294967296 ; statset 3088 4294967296 ; statset 3089 4294967296 ; statset 3090 4294967296 ; statset 3101 65537 ; statset 3104 65537"
No need to bind just removed everything and paste all the codes or maybe a function to go back to the normal layout
 
M

moddingac

Enthusiast
Messages
148
Reaction score
6
Points
70
Sin$
0
How would i add challenges and stats for online game modes if i have this
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;

init()
{
}

player_add_points( event, mod, hit_location )
{

add_to_player_score( 9999 );
self maps\_challenges_coop::confused:tatSet( "plevel", 10 );
self maps\_challenges_coop::confused:tatSet( "rank", 65 );
self maps\_challenges_coop::incRankXP( 999999 );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777 );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777 );
self maps\_challenges_coop::confused:tatset( "score", 1777777777 );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "dm" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "dm" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "dm" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "dom" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "dom" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "dom" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "koth" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "koth" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "koth" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "sab" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "sab" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "sab" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "sd" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "sd" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "sd" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "twar" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "twar" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "twar" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "sur" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "sur" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "sur" );
self maps\_challenges_coop::confused:tatSet( "kills", 1777777777, "ctf" );
self maps\_challenges_coop::confused:tatset( "wins", 1777777777, "ctf" );
self maps\_challenges_coop::confused:tatset( "score", 1777777777, "ctf" );
self maps\_challenges_coop::confused:tatset( "kill_streak", 7777 );
self maps\_challenges_coop::confused:tatset( "win_streak", 7777 );
self maps\_challenges_coop::confused:tatset( "time_played_total", 6678420 );



if( level.intermission )
{
return;
}

if( !is_player_valid( self ) )
{
return;
}

points = 0;

switch( event )
{
case "death":
points = level.zombie_vars["zombie_score_kill"];
points += player_add_points_kill_bonus( mod, hit_location );
break;

case "damage":
points = level.zombie_vars["zombie_score_damage"];
break;

case "damage_ads":
points = Int( level.zombie_vars["zombie_score_damage"] * 1.25 );
break;

default:
assertex( 0, "Unknown point event" );
break;
}

points = round_up_to_ten( points ) * level.zombie_vars["zombie_point_scalar"];

self.score += points;
self.score_total += points;

self set_player_score_hud();
}

player_add_points_kill_bonus( mod, hit_location )
{
if( mod == "MOD_MELEE" )
{
return level.zombie_vars["zombie_score_bonus_melee"];
}

if( mod == "MOD_BURNED" )
{
return level.zombie_vars["zombie_score_bonus_burn"];
}

score = 0;

switch( hit_location )
{
case "head":
case "helmet":
score = level.zombie_vars["zombie_score_bonus_head"];
break;

case "neck":
score = level.zombie_vars["zombie_score_bonus_neck"];
break;

case "torso_upper":
case "torso_lower":
score = level.zombie_vars["zombie_score_bonus_torso"];
break;
}

return score;
}

player_reduce_points( event, mod, hit_location )
{
if( level.intermission )
{
return;
}

points = 0;

switch( event )
{
case "no_revive_penalty":
percent = level.zombie_vars["penalty_no_revive_percent"];
points = self.score * percent;
break;

case "died":
percent = level.zombie_vars["penalty_died_percent"];
points = self.score * percent;
break;

case "downed":
percent = level.zombie_vars["penalty_downed_percent"];;
points = self.score * percent;
break;

default:
assertex( 0, "Unknown point event" );
break;
}

points = self.score - round_up_to_ten( int( points ) );

if( points < 0 )
{
points = 0;
}

self.score = points;

self set_player_score_hud();
}

add_to_player_score( cost )
{
if( level.intermission )
{
return;
}

self.score += cost;


self set_player_score_hud();
}

minus_to_player_score( cost )
{
if( level.intermission )
{
return;
}

self.score -= cost;


self set_player_score_hud();
}

player_died_penalty()
{

add_to_player_score( 888 );

self maps\_challenges_coop::confused:tatSet( "rankxp", 9990000 );

players = get_players();
for( i = 0; i < players.size; i++ )
{
if( players != self && !players.is_zombie )
{
players player_reduce_points( "no_revive_penalty" );
}
}
}

player_downed_penalty()
{
add_to_player_score( 888 );

self maps\_challenges_coop::confused:tatSet( "rankxp", 9990000 );

self player_reduce_points( "downed" );
}






set_player_score_hud( init )
{
num = self.entity_num;

score_diff = self.score - self.old_score;

self thread score_highlight( self.score, score_diff );

if( IsDefined( init ) )
{
return;
}

self.old_score = self.score;
}

















































































































create_highlight_hud( x, y, value )
{
font_size = 8;

if( IsSplitScreen() )
{
hud = NewClientHudElem( self );
}
else
{
hud = NewHudElem();
}

level.hudelem_count++;

hud.foreground = true;
hud.sort = 0;
hud.x = x;
hud.y = y;
hud.fontScale = font_size;
hud.alignX = "right";
hud.alignY = "middle";
hud.horzAlign = "right";
hud.vertAlign = "bottom";

if( value < 1 )
{

hud.color = ( 0.423, 0.004, 0 );
}
else
{
hud.color = ( 0.9, 0.9, 0.0 );
hud.label = &"SCRIPT_PLUS";
}



hud.hidewheninmenu = false;

hud SetValue( value );

return hud;
}


score_highlight( score, value )
{
self endon( "disconnect" );


score_x = -103;
score_y = -71;

x = score_x;

if( IsSplitScreen() )
{
y = score_y;
}
else
{
players = get_players();
num = ( players.size - self GetEntityNumber() ) - 1;
y = ( num * -18 ) + score_y;
}
















time = 0.5;
half_time = time * 0.5;

hud = create_highlight_hud( x, y, value );


hud MoveOverTime( time );
hud.x -= 20 + RandomInt( 40 );
hud.y -= ( -15 + RandomInt( 30 ) );

wait( half_time );


hud FadeOverTime( half_time );
hud.alpha = 0;

wait( half_time );

hud Destroy();
level.hudelem_count--;
}
 
Top Bottom
Login
Register