Garry's Mod
Недостаточно оценок
worldclicker - click to interact with objects
   
Наградить
В избранное
В избранном
Удалить
Тип контента: Дополнение
Тип дополнения: Инструмент
Метки дополнений: Развлечение, Ролевая игра
Размер файла
Добавлен
Изменён
4.357 KB
14 дек в 17:18
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