What's new

Discussion pls help

  • Thread starter Zombie Invader
  • Start date
  • Views 281
Z

Zombie Invader

Enthusiast
Messages
137
Reaction score
22
dude whats script for add points :rolleyes:
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 help


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

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;:wink:
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player thread maps\_zombiemode_radio::confused:tation();
player thread maps\_zombiemode_utility::doSpawnPoints();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;:wink:
{
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::tongue:restige();
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
 
B

Brinko

Retired & VIP HypeMan.
VIP
Retired
Messages
9,544
Reaction score
4,847
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 help


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

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;:wink:
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player thread maps\_zombiemode_radio::confused:tation();
player thread maps\_zombiemode_utility::doSpawnPoints();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;:wink:
{
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::tongue:restige();
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

It looks like there are too many open braces. ({})
 
W

- Woookie -

Enthusiast
Messages
343
Reaction score
33
Have you precached the model?
Or it could be too many open braces. ({})
Hope this helped. :biggrin:
 
Top Bottom