[Support] anti barrel
			
			BO2 Modding Support & Discussion
		
6
Posts
4
Posters
296
Views
2
Watching
- 
anyone got an anti barrel script ?
 - 
Put this somewhere in your onplayerdamage() function, assuming you already have one :
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { iDamage = 0; return iDamage; }You can change 200 to something higher/lower.
 - 
Sass how do i do it so it pops up center screen saying too close ??
 - 
kuxqi It looks super dumb and ugly but here you go I guess....
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { eattacker iPrintLnBold("bro ur 2 close bro wtf"); iDamage = 0; return iDamage; } - 
kuxqi It looks super dumb and ugly but here you go I guess....
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { eattacker iPrintLnBold("bro ur 2 close bro wtf"); iDamage = 0; return iDamage; }Sass lol agreed, just being extra
 - 
Put this somewhere in your onplayerdamage() function, assuming you already have one :
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { iDamage = 0; return iDamage; }You can change 200 to something higher/lower.
Sass said in [Support] anti barrel:
onplayerdamage()
yo just looking back at this, can u give full script of it as i cant get this too work and its annoying af