Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----Barricade
- local old_ISBarricadeAction_perform = ISBarricadeAction.perform;
- function ISBarricadeAction:perform()
- local old_fn = sendClientCommand;
- sendClientCommand = function(a,b,c,d,...)
- if b == 'object' and c == 'barricade' and d and (d.isMetal or d.isMetalBar) then
- d.condition = 450; -----> patch here!
- print("NEW CONDITION:",d.condition);
- end
- return old_fn(a,b,c,d,...);
- end
- old_ISBarricadeAction_perform(self);
- sendClientCommand = old_fn;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement