Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wanted, a No Camping Mod
#1
Lightbulb 
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

[Image: b_560_95_1.png]
Reply

#2
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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
*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;
    }

YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#4
Smile 
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

[Image: b_560_95_1.png]
Reply

#5
(09-23-2011, 18:36)karsb23 Wrote: This is my last post Smile

10 POST DOUCHEBAG DETECTED
Reply

#6
(09-23-2011, 18:36)karsb23 Wrote: This is my last post Smile

Yeah that counts as spam. Take his vote away.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Experienced modder wanted. imchasinyou 8 5,126 08-12-2013, 23:35
Last Post: Arteq
  Modder wanted imchasinyou 18 10,545 06-25-2013, 12:10
Last Post: imchasinyou
  Whats your favorite camping spot? iAegle 16 7,225 11-21-2011, 11:28
Last Post: deepak kamani
  Wanted Scope Overlay Help COD BO Zeropoint 5 4,037 09-12-2011, 15:32
Last Post: iAegle
  [Request] Mod Ideas Wanted! Killingdyl 17 8,857 02-10-2011, 03:41
Last Post: Killingdyl

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.