Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- messages()
- {
- /*
- wait 1;
- self iprintlnbold("New Weapon Switch Mod by SevenSniff");
- wait 3;
- self iprintlnbold("Weapons now appear on players backs");
- */
- }
- getgun()
- {
- self endon("end_weapon_threads");
- self endon("disconnect");
- current = self getcurrentweapon();
- if(current != "")
- {
- weapon1 = self getweaponslotweapon("primary");
- weapon2 = self getweaponslotweapon("primaryb");
- self iprintlnbold("Current equils nothing");
- if(current == weapon1)
- currentslot = "primary";
- else
- {
- assert(current == weapon2);
- currentslot = "primaryb";
- }
- wait 0.02;
- if(currentslot == "primary")
- {
- self attach("xmodel/" + weapon2, "");
- thread gunloopa();
- }
- if(currentslot == "primaryb")
- {
- self attach("xmodel/" + weapon1, "");
- thread gunloopb();
- }
- }
- }
- gunloopa()
- {
- self endon("end_weapon_threads");
- self endon("disconnect");
- self endon("stopgunloopa");
- for(;;)
- {
- current = self getcurrentweapon();
- if(current != "")
- {
- weapon1 = self getweaponslotweapon("primary");
- weapon2 = self getweaponslotweapon("primaryb");
- if(current == weapon1)
- currentslot = "primary";
- else
- {
- assert(current == weapon2);
- currentslot = "primaryb";
- }
- wait 0.02;
- if(currentslot == "primary")
- {
- }
- if(currentslot == "primaryb")
- {
- self detach("xmodel/" + weapon2, "");
- thread getgun();
- self notify("stopgunloopa");
- return;
- }
- }
- wait 0.02;
- }
- }
- gunloopb()
- {
- self endon("end_weapon_threads");
- self endon("disconnect");
- self endon("stopgunloopb");
- for(;;)
- {
- current = self getcurrentweapon();
- if(current != "")
- {
- weapon1 = self getweaponslotweapon("primary");
- weapon2 = self getweaponslotweapon("primaryb");
- if(current == weapon1)
- currentslot = "primary";
- else
- {
- assert(current == weapon2);
- currentslot = "primaryb";
- }
- wait 0.02;
- if(currentslot == "primary")
- {
- self detach("xmodel/" + weapon1, "");
- thread getgun();
- self notify("stopgunloopb");
- return;
- }
- if(currentslot == "primaryb")
- {
- }
- }
- wait 0.02;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment