Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void() ToggleQuad =
- {
- local entity quad;
- if ( GetPlayerCount() < stof( infokey( world, "players_for_quad" ) ) ) {
- if ( !quadToggledOff ) {
- quad = find( world, classname, "item_artifact_super_damage" );
- while ( quad != world ) {
- quad.solid = SOLID_NOT;
- quad.model = string_null;
- quad = find( quad, classname, "item_artifact_super_damage" );
- }
- quad = find( world, model, "progs/quaddama.mdl" );
- while ( quad != world ) {
- remove( quad );
- quad = find( quad, model, "progs/quaddama.mdl" );
- }
- quadToggledOff = 1;
- bprint( PRINT_HIGH, "Quad disabled!\n" );
- }
- } else {
- if ( quadToggledOff ) {
- quad = find( world, classname, "item_artifact_super_damage" );
- while ( quad != world ) {
- quad.solid = SOLID_TRIGGER;
- setmodel (quad, "progs/quaddama.mdl");
- quad = find( quad, classname, "item_artifact_super_damage" );
- }
- quadToggledOff = 0;
- bprint( PRINT_HIGH, "Quad enabled!\n" );
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement