ItsMods

Full Version: Wanted, a No Camping Mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking for a no camping mod for our Bot server. Like 140 sec. you get a warning to move like 50-60 feet then at 155 sec, you are killed then need to respawn again.

Needed because we get players that camp the glitches where the bot can't get you, like behind railings were you can shot out but bot can't shoot in. And they rackup tons of kill streak credits and it needs to be stopped


Can any on help us with this ? Idea
I made this for mw2

Code:
checkCamp()
{
    self endon("disconnect");
    self endon("death");
    
    radius = 250;
    delay = 140;

    while(1)
    {    
        self.lastPos = self getOrigin();
        curWeapon = self getCurrentWeapon();
    
        wait delay/5;
        
        curWeapon = self getCurrentWeapon();
            
        if( self isUsingKillstreak() )
            continue;
            
        wait delay/5;
        
        curWeapon = self getCurrentWeapon();
            
        if( self isUsingKillstreak() )
            continue;
        
        wait delay/5;
        
        if( distance( self.origin, self.lastPos ) < radius )
        {
            self iPrintLnBold( "^1Please start moving or you will be killed" );
            self.lastPos = self getOrigin();
            
            if( self isUsingKillstreak() )
                continue;
            
            wait delay/5;
            
            if( distance( self.origin, self.lastPos ) < radius )
            {
                self iPrintLnBold( "^1Please start moving or you will be killed" );
                self.lastPos = self getOrigin();
                
                if( self isUsingKillstreak() )
                    continue;
                
                wait delay/5;
                
                if( distance( self.origin, self.lastPos ) < radius )
                {
                    self iPrintLnBold( "^1Please start mo... Ohh wait, too late! :D" );
                
                    wait 1;
                    
                    allClientsPrint( "^1" + self.name + " got killed for camping" );
                    self suicide();
                }
            }
        }
    }
}

isUsingKillstreak()
{
    curWeapon = self getCurrentWeapon();
    
    if( isSubStr( curWeapon, "ac130" ) )
        return true;
    if( isSubStr( curWeapon, "remote" ) )
        return true;
    if( isSubStr( curWeapon, "predator" ) )
        return true;
        
    return false;
}

It might work if you change the isUsingKillstreak function to fit the black ops killstreak names
*ahem*

Creds to my Marked Man mod.

PHP Code:
antiCamp()
{
self endon("death");
self endon("disconnect");

self.positions = [];

    for(
i=0;;i++){
    
self.positions[i] = self.origin;
    
wait 8;    // Set this higher for less strict
        
for(0self.positions.sizek++)
        while(
distance(self.positions[k], self.origin) < 200){
        
self iPrintLnBold("^0ANTICAMP");
        
self [[level.callbackPlayerDamage]]( undefinedself308"MOD_SUICIDE""mortar_mp"self.positions[k], self.positions[k], "none");
        
wait 1.5;}
    if(
5)
    
0;
    }

Thanks you guys and/or gals for the help this site rocks!Big Grin
Nice so far but is there anymore scripts that are working that a noob can use with out editing or help with get first post to work Smile
(09-23-2011, 18:36)karsb23 Wrote: [ -> ]This is my last post Smile

10 POST DOUCHEBAG DETECTED
(09-23-2011, 18:36)karsb23 Wrote: [ -> ]This is my last post Smile

Yeah that counts as spam. Take his vote away.