Advertisement
Guest User

Untitled

a guest
Dec 24th, 2018
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. -----Barricade
  2. local old_ISBarricadeAction_perform = ISBarricadeAction.perform;
  3. function ISBarricadeAction:perform()
  4.     local old_fn = sendClientCommand;
  5.     sendClientCommand = function(a,b,c,d,...)
  6.         if b == 'object' and c == 'barricade' and d and (d.isMetal or d.isMetalBar) then
  7.             d.condition = 450; -----> patch here!
  8.             print("NEW CONDITION:",d.condition);
  9.         end
  10.         return old_fn(a,b,c,d,...);
  11.     end
  12.     old_ISBarricadeAction_perform(self);
  13.     sendClientCommand = old_fn;
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement