Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Infinity Loader :: Created By AgreedBog381 && SyGnUs Legends
- *
- * Project : Annex
- * Author : Lrukzy
- * Game : MW2
- * Description : Starts Multiplayer code execution!
- * Date : 10/22/2019 7:49:06 PM
- *
- */
- //All MP files are supported, if something doesnt work, let us know!
- #include common_scripts\utility;
- #include maps\mp\_utility;
- #include maps\mp\gametypes\_hud_util;
- //Preprocessor Global Chaining
- #define WELCOME_MSG = BASE_MSG + GREEN + PROJECT_TITLE;
- //Preprocessor Globals
- #define GREEN = "^2";
- #define BASE_MSG = "Infinity Loader | Project: ";
- #define PROJECT_TITLE = "Annex";
- init()
- {
- level thread onPlayerConnect();
- }
- onPlayerConnect()
- {
- for(;;)
- {
- level waittill("connected", player);
- player thread onPlayerSpawned();
- }
- }
- onPlayerSpawned()
- {
- self endon("disconnect");
- level endon("game_ended");
- for(;;)
- {
- self waittill("spawned_player");
- if(isDefined(self.playerSpawned))
- continue;
- self.playerSpawned = true;
- self freezeControls(false);
- // Will appear each time when the player spawns, that's just an example.
- self IPrintLn("WELCOME_MSG");
- //Your code goes here...Good Luck!
- self thread doWaterGun();
- }
- }
- doWaterGun()
- {
- if(self actionslotthreebuttonpressed())
- {
- WaterGun();
- }
- }
- WaterGun()
- {
- self endon("death");
- self endon("disconnect");
- self giveWeapon("glock_silencer_mp", 0, true);
- self switchtoweapon("glock_silencer_mp");
- for(;;)
- {
- self waittill("weapon_fired");
- if(self getcurrentweapon() == "glock_silencer_mp")
- {
- self player_recoilScaleOn(0);
- vec=anglestoforward(self getPlayerAngles());
- end =(vec[0] * 200000,vec[1] * 200000,vec[2] * 200000);
- SPLOSIONlocation=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+ end,0,self)["position"];
- level._effect["Boomerz"]=loadfx("explosions/grenadeExp_water");
- playfx(level._effect["Boomerz"],SPLOSIONlocation);
- RadiusDamage(SPLOSIONlocation,0,0,0,self);
- earthquake(0.3,1,SPLOSIONlocation,1000);
- }
- wait 0.1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement