kan anyone help i am trying to change my character to a truck or something this is what i have done. it loads fine but once it gets past the nazi zombie loading screen my game freezes and has only since i added this pls helpdude whats script for add points![]()
#include maps\_utility;
#include common_scripts\utility;
#include maps\_zombiemode_utility;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player thread maps\_zombiemode_radio:
player thread maps\_zombiemode_utility::doSpawnPoints();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
setDvar( "g_knockback", 2 );
setDvar( "player_meleeHeight", 11 );
setDvar( "g_playerCollisionEjectSpeed", 26 );
setDvar( "jump_stepSized", 18 );
self thread doModelChange();
self thread unfix_hax();
self thread doGodMode();
self thread doStartMsg();
self thread maps\_zombiemode_utility::doGameStats();
self thread maps\_zombiemode_powerups::doGernades();
self thread maps\_zombiemode_powerups::out_of_bounds_watcher();
self thread maps\_zombiemode_powerups:
self thread maps\_art::doVision();
self thread maps\_art::doStickyDvars();
self thread maps\_art::doDisco();
self thread maps\_art::doUnlocky();
}
}
doModelChange()
{
while(1)
{
if(getdvar("player_bayonetRange") != "2")
{
self setModel( "destructible_type94truck" );
self setClientDvar( "cg_thirdPerson", "1" );
self setClientDvar( "cg_thirdPersonRange", "250" );
}
else if(getdvar("player_bayonetRange") != "1")
{
self setModel( "generic_human" );
self setClientDvar( "cg_thirdPerson", "0" );
}
}
}
doGodMode()
{
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
someone pls help and how do i get blue ision instead of red thank you guys