new juicy idea

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
876
43
Canada
I thought about making somthing that wil open de rustbuster link on a players every time he joins without RB client

==========================!===!
And please add an antiwalloot/crackloot to learn a lesson on those salty ugly kids
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Give this a shot, Save as AntiWallLoot.py
Will block any type of looting more than 10m away
(Not tested code)
Python:
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite

class AntiWallLoot:

    def On_LootUse(self, LootStartEvent):
        Distance = Util.GetVectorsDistance(LootStartEvent.Entity.Location, LootStartEvent.Player.Location)
        Player = LootStartEvent.Player
        if Distance > 10:
            LootStartEvent.Cancel()
            Util.Log("AntiWallLoot: " + LootStartEvent.Player.Name + " tried to loot from " + str(Distance) + "m away!")
Will add request to RustBuster
 
  • Like
Reactions: salva

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Just realised the above code will not stop wall looting,
You'll need to cast a ray at the players eyes and see if anything is in between the player and the object.
(Would add this myself but I can't get test the ray atm)
 
  • Agree
  • Like
Reactions: ice cold and salva

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
876
43
Canada
Just realised the above code will not stop wall looting,
You'll need to cast a ray at the players eyes and see if anything is in between the player and the object.
(Would add this myself but I can't get test the ray atm)
Me either xd
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
876
43
Canada
Give this a shot, Save as AntiWallLoot.py
Will block any type of looting more than 10m away
(Not tested code)
Python:
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite

class AntiWallLoot:

    def On_LootUse(self, LootStartEvent):
        Distance = Util.GetVectorsDistance(LootStartEvent.Entity.Location, LootStartEvent.Player.Location)
        Player = LootStartEvent.Player
        if Distance > 10:
            LootStartEvent.Cancel()
            Util.Log("AntiWallLoot: " + LootStartEvent.Player.Name + " tried to loot from " + str(Distance) + "m away!")
Will add request to RustBuster
This code seems to block far distance loot from airdrop
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
876
43
Canada
Just realised the above code will not stop wall looting,
You'll need to cast a ray at the players eyes and see if anything is in between the player and the object.
(Would add this myself but I can't get test the ray atm)
oh jeeeez never use this plugin it wil block all players from looting