Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. I have been recently working on an update to the entwatch plugin, which should bring more features to the table aswell as some tweaks and few error messages. It is currently on the server, so might aswell make a proper thread for it.
  2.  
  3. Changelog:
  4. Spoiler
  5.  
  6. Added support for game_ui items (ie. playable characters on skyrim)
  7. Added a new command: /ebring //Allows admins to teleport an item to a player. Thanks for help @R3TROATTACK
  8. Added 2-way transfer // 1:1 and only works for normal non game_ui items.
  9. Added few error messages.
  10.  
  11.  
  12.  
  13.  
  14. Now, onto the important part of this post - tutorial and overview.
  15.  
  16. Command overview:
  17.  
  18. /eban - TA+ Only
  19. /eunban - TA+ Only
  20. /etransfer - Usually use it if a person trolls with an item or you want to swap items between 2 players to avoid randoms picking them up in crowded areas. Useful after you've followed the admin protocol (Warn/kick/ban) on troll players. Usage: /etransfer <target> <receiver>
  21. /ebring - Occasional command. Example use: a troll drops Ultima on mako into the reactor ruining the Extreme 2 run. Instead of ruining the round you can still save it by typing /ebring ultima <target> (To bring the item, use the name that shows up on the scoreboard, not case sensitive btw). Only works if an item has been picked up atleast once and is not owned by a player.
  22.  
  23.  
  24. Config Creation
  25.  
  26. Here's the template you'll need to use or use one of already made configs: Template File. You can download it here, but it's also included in the updated config pack.
  27.  
  28. "entities"
  29. {
  30. "0" //Simple order of items starting from 0, for next items use 1,2,3 etc.
  31. {
  32. "name" "" //This is what will be displayed in chat (ie. Player has picked up Heal Materia)
  33. "shortname" "" //This is what you will see in the scoreboard (limited space, so please use shortened names like Heal)
  34. "game_ui_name" "" //Should leave this blank, unless the specified item uses game_ui to control actions (ie.Dovakhin -Skyrim)
  35. "color" "" //example: "{darkred}" Specifies the color of the item when displayed in the chat. Color combinations below
  36. "buttonclass" "" //In most cases it's func_button, but others can happen, like func_door
  37. "filtername" "" //No need to fill this, but it's a "filtername" keyvalue in the weapon_* entity
  38. "hasfiltername" "false" //Leave this false
  39. "blockpickup" "false" //Make it pickable or not
  40. "allowtransfer" "true" //Self explanatory
  41. "forcedrop" "true" //Drop the item on death or not
  42. "chat" "true" //Show it in chat or not
  43. "hud" "true" //Display in scoreboard or not
  44. "hammerid" "0" //This is the "hammerid" of the weapon_* entity that carries the item. Instructions below.
  45. "mode" "0" // 1-spam protection only, 2 - unlimited uses with cooldown, 3 - max uses, 4 - max uses with cooldowns between each use, 5 - max uses with cooldown after those uses (ie. use 3 times > cooldown > use 3 times > cd)
  46. "maxuses" "0" //Self explanatory
  47. "cooldown" "0" //Time before being able to use again
  48. "maxamount" "0" //How many instances of this item can be in the map. ze_toaster is a good example. (obviously put 1 as a starting value if you want it to work)
  49. }
  50. }
  51.  
  52. Remember to save the file as <mapname>.cfg.
  53.  
  54. Colors you can use:
  55.  
  56. "{default}", "{darkred}", "{purple}", "{green}", "{lightgreen}", "{lime}", "{red}", "{grey}", "{olive}", "{a}", "{lightblue}", "{blue}", "{d}", "{pink}", "{darkorange}", "{orange}"
  57.  
  58.  
  59.  
  60. Now, how do you obtain necessary stuff like hammerid or cooldown time?
  61.  
  62. Download a tool called VIDE (get it here: VIDE) or decompile the map and open the .vmf file in notepad++ or any other decent text editor, if you don't want to download.
  63.  
  64.  
  65.  
  66. Those are the most common cooldown systems. Sometimes you might have to search in a logic_relay to find it, but feel free to message me if you can't find something.
  67.  
  68. As for the .vmf way, you'll have to do the same, but it's 1000x harder.
  69.  
  70. There's also a sort of hidden feature, that allows you to register normal buttons instead of items, give them names and display in chat when used. Simply add a keyvalue called "entityid" under "hammerid" in the cfg and copy the hammerid value into it. Used with mode 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement