Advertisement
crashz33

Karambit

Mar 28th, 2015
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function karambit() //Run this via input RunScriptCode and parameter ChangeViewModels()
  2. {
  3. local viewmodel = null;
  4. while(viewmodel = Entities.FindByClassname(viewmodel, "predicted_viewmodel")) //Search through all entities of the type "predicted_viewmodel"
  5. {
  6. //Lets you set the model by it's path.
  7. //The model must be loaded already or the game will crash!
  8. viewmodel.SetModel("models/weapons/v_knife_karam.mdl");
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement