Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. void() ToggleQuad =
  2. {
  3. local entity quad;
  4.  
  5. if ( GetPlayerCount() < stof( infokey( world, "players_for_quad" ) ) ) {
  6. if ( !quadToggledOff ) {
  7. quad = find( world, classname, "item_artifact_super_damage" );
  8. while ( quad != world ) {
  9. quad.solid = SOLID_NOT;
  10. quad.model = string_null;
  11. quad = find( quad, classname, "item_artifact_super_damage" );
  12. }
  13. quad = find( world, model, "progs/quaddama.mdl" );
  14. while ( quad != world ) {
  15. remove( quad );
  16. quad = find( quad, model, "progs/quaddama.mdl" );
  17. }
  18. quadToggledOff = 1;
  19. bprint( PRINT_HIGH, "Quad disabled!\n" );
  20. }
  21. } else {
  22. if ( quadToggledOff ) {
  23. quad = find( world, classname, "item_artifact_super_damage" );
  24. while ( quad != world ) {
  25. quad.solid = SOLID_TRIGGER;
  26. setmodel (quad, "progs/quaddama.mdl");
  27. quad = find( quad, classname, "item_artifact_super_damage" );
  28. }
  29. quadToggledOff = 0;
  30. bprint( PRINT_HIGH, "Quad enabled!\n" );
  31. }
  32. }
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement