Garry's Mod

Garry's Mod

評價次數不足
worldclicker - click to interact with objects
   
獎勵
加入最愛
已加入最愛
移除最愛
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
檔案大小
發佈於
更新時間
4.357 KB
12 月 14 日 下午 5:18
12 月 15 日 上午 1:57
4 項更新註記 (檢視)

訂閱以下載
worldclicker - click to interact with objects

描述
bind key worldclick_activate <-- in console to set a key for this
example: bind g worldclick_activate

inspirationed from system shock 1 specifically, where you had to point your cursor on an object and click on it to interact with it or pick it up

you can interact with anything that can be interacted with, this simply emulates use key on an entity

originally made as a test to then port over to my gamemode, but felt like it was neat enough to be standalone

= = = = commands = = = =
worldclick_distance = maximum distance for click to register. if the distance between you and the object is greater than this value then the click will not register. Default value is 100
worldclick_suppress_use 0 / 1 = setting this to 1 will disable the use key for everyone, requiring you to interact with objects through click method only. By default this is set to 0, so I recommend changing it to 1
worldclick_suppress_items 0 / 1 = setting this to 1 will disable automatic item (batteries, healthkits, etc..) pickups when players walk over them, clicking on items will pick them up. This is also 0 by default.
worldclick_suppress_weapons 0 / 1 = same stuff like with items but only with weapons


known issues:
- having suppress items on will not give you weapons on spawn