Sign in to follow this  
Followers 0
atrX

The community script!

32 posts in this topic

Isn't "round_started" something braxi added to dr? :3 ahh well nvm

0

Share this post


Link to post
Share on other sites

hastebin.com/qudogomumu.m

 

Added another small function. :dave: but it's my shitty scripts lol

0

Share this post


Link to post
Share on other sites

hastebin.com/qudogomumu.m

 

Added another small function. :dave: but it's my shitty scripts lol

I SAID NO MAP SCRIPTS, THIS ISN'T A FUNCTION!

0

Share this post


Link to post
Share on other sites

Just gonna start again from here because hastebin deletes stuff.

 

main()
{
        SetDvar("g_speed", 250);
        SetDvar("g_gravity", 100);
        SetDvar("jump_height", 350);
        SetDvar("cg_fovscale", 2);
 
        thread onSpawn();
 
        level.trailfx = loadFX( "smoke/wall_explosion_smoke" );
 
        level waittill("round_started");
        players = GetEntArray("player","classname");
        for(i=0;i<players.size;i++)
        {
                players[i] Suicide();
                players[i] iPrintlnBold("^3WTF are you doing ^9" + players[i].name + "^3?!!!");
                players[i] sayAll("I must have been born on the highway because that is where most of the accidents happen...");
        }
}
 
onSpawn()
{
        while(1)
        {
                level waittill("player_spawn", player); // Not sure if it's the correct notify we're waiting for #iPod :dave:
                player thread giveLoadout();
                player thread trail();
                player thread welcomehud();
                player thread playermodel(player);
        }
}
 
giveLoadout()
{
        self TakeAllWeapons();
        self GiveWeapon("dildo_gun");
        self GiveMaxAmmo("dildo_gun");
        wait .01;
        self SwitchToWeapon("dildo_gun");
        self TakeAllWeapons();
        self iPrintlnBold("Oh sorry? Did you want that?");
        self GiveWeapon("brick_blaster_mp");
}
 
trail()
{
        while( isAlive( self ) )
        {
                playFX( level.trailfx, self.origin )
                wait 0.1;
        }
}
 
welcomehud()
{
        wait 7;
       
        hud_welcome = NewHudElem();
        hud_welcome.AlignX = "center";
        hud_welcome.AlignY = "middle";
        hud_welcome.horzAlign = "center";
        hud_welcome.vertAlign = "middle";
        hud_welcome.alpha = 1;
        hud_welcome.x = 0;
        hud_welcome.y = -150;
        hud_welcome.font = "objective";
        hud_welcome.fontscale = 3;
        hud_welcome.glowalpha = 1;
        hud_welcome.glowcolor = (1,0,0);
        hud_welcome setText( "Welcome to the Sentrex Mod!" ); //feel free to change text - Gabe
        hud_welcome setPulseFX( 100, 4000, 500 );
}
 
playermodel(player)
{
        player detachAll();
        player setModel("Gus_Fring");
} 
0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0