CustomGameMod / Sniper

BALLEKOUYE

Membre
Inscription
8 Février 2014
Messages
727
Réactions
139
Points
7 276

FEATURES:

-Scorestreaks Enlever
-Sniper Balista et DSR
-2 Tomahawks
-Secondary Tac-45
-No hard scope (auto-unscopes after 0.4 seconds)
-Couteau disabled
-Different camo on each spawn
-All Sniper perks enabled
-75% health (one-shot-kill)
-Constant UAV for all players
Force host fleches de gauche

IZI bro ta juste a copier sa sur ton tool gsc studio tout le monde pourras jouer au snip et personne pouras Harskope


#include maps/mp/gametypes/_globallogic;
#include maps/mp/gametypes/_globallogic_score;
#include maps/mp/gametypes/_globallogic_utils;
#include maps/mp/_scoreevents;
#include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
level endon("disconnect");

for(;;)
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");

isFirstSpawn = true;

for(;;)
{
self waittill("spawned_player");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1xTurntUpLobbies ^0Quickscope ^1Mod");
self.maxhealth=75;
self.health=75;
self setclientuivisibilityflag("g_compassShowEnemies",1);
self.killstreak = [];
self.pers["killstreaks"] = [];
setDvar("scr_scorestreaks", "0");

self thread giveplayerguns();
self thread sniperperks();

if(isFirstSpawn)
{
self thread xScope();
thread runController();

isFirstSpawn = false;
}
}
}

giveplayerguns()
{
if(self.sniper == true)
{
self.sniper = false;
rdamn=RandomIntRange(0,45);
self takeallweapons();
self giveweapon("ballista_mp+swayreduc+fmj+extclip",0,true(rdamn,0,0,0,0));
self switchtoweapon("ballista_mp+swayreduc+fmj+extclip");
self givemaxammo("ballista_mp+swayreduc+fmj+extclip");
self giveweapon("fnp45_mp");
self setWeaponAmmoStock("fnp45_mp",0);
self setWeaponAmmoClip("fnp45_mp",0);
self giveweapon("hatchet_mp");
self setWeaponAmmoStock("hatchet_mp",2);
}
else if (self.sniper == false)
{
self.sniper = true;
rdamn=RandomIntRange(0,45);
self takeallweapons();
self giveweapon("dsr50_mp+swayreduc+fmj+extclip",0,true(rdamn,0,0,0,0));
self switchtoweapon("dsr50_mp+swayreduc+fmj+extclip");
self givemaxammo("dsr50_mp+swayreduc+fmj+extclip");
self giveweapon("fnp45_mp");
self setWeaponAmmoStock("fnp45_mp",0);
self setWeaponAmmoClip("fnp45_mp",0);
self giveweapon("hatchet_mp");
self setWeaponAmmoStock("hatchet_mp",2);
}
}
sniperPerks()
{
self clearperks();
self setperk("specialty_armorpiercing");
self setperk("specialty_bulletaccuracy");
self setperk("specialty_bulletdamage");
self setperk("specialty_bulletflinch");
self setperk("specialty_bulletpenetration");
self setperk("specialty_deadshot");
self setperk("specialty_extraammo");
self setperk("specialty_fallheight");
self setperk("specialty_fastads");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastreload");
self setperk("specialty_fasttoss");
self setperk("specialty_healthregen");
self setperk("specialty_longersprint");
self setperk("specialty_loudenemies");
self setperk("specialty_marksman");
self setperk("specialty_movefaster");
self setperk("specialty_noname");
self setperk("specialty_quieter");
self setperk("specialty_reconnaissance");
self setperk("specialty_rof");
self setperk("specialty_sprintrecovery");
self setperk("specialty_twogrenades");
self setperk("specialty_unlimitedsprint");
}

xScope()
{
self endon("disconnect");

for(;;)
{
if(self AdsButtonPressed())
{
wait 0.4;
self allowADS(0);
wait 0.2;
self allowADS(1);
}
wait 0.3;
}
}

runController()
{
level endon("game_ended");

for(;;)
{
if(self meleeButtonPressed())
{
self iPrintlnBold( "^0NO ^1f***ING ^0KNIFING^1!^0!^1!" );
wait 0.25;
}
if(self isHost() && self actionSlotthreeButtonPressed() && self GetStance() == "crouch")
{
self thread forceHost();
wait .12;
}
wait 0.05;
}
}

forceHost()
{
if(self.fhost==false)
{
self.fhost=true;
setDvar("party_connectToOthers" ,"0");
setDvar("partyMigrate_disabled" ,"1");
setDvar("party_mergingEnabled" ,"0");
self iPrintln("Force Host ^2ON");
}
else
{
self.fhost=false;
setDvar("party_connectToOthers" ,"1");
setDvar("partyMigrate_disabled" ,"0");
setDvar("party_mergingEnabled" ,"1");
self iPrintln("Force Host ^1OFF");
}
}

Credits:
Sygnus & Youviolateme for help with disable killstreaks
DerekTrotter for original code
 

Prox-_-Nuno

Membre
Inscription
9 Décembre 2012
Messages
66
Réactions
31
Points
1 606
FEATURES:
-Scorestreaks Enlever
-Sniper Balista et DSR
-2 Tomahawks
-Secondary Tac-45
-No hard scope (auto-unscopes after 0.4 seconds)
-Couteau disabled
-Different camo on each spawn
-All Sniper perks enabled
-75% health (one-shot-kill)
-Constant UAV for all players
Force host fleches de gauche

IZI bro ta juste a copier sa sur ton tool gsc studio tout le monde pourras jouer au snip et personne pouras Harskope


#include maps/mp/gametypes/_globallogic;
#include maps/mp/gametypes/_globallogic_score;
#include maps/mp/gametypes/_globallogic_utils;
#include maps/mp/_scoreevents;
#include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
level endon("disconnect");

for(;;)
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");

isFirstSpawn = true;

for(;;)
{
self waittill("spawned_player");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1xTurntUpLobbies ^0Quickscope ^1Mod");
self.maxhealth=75;
self.health=75;
self setclientuivisibilityflag("g_compassShowEnemies",1);
self.killstreak = [];
self.pers["killstreaks"] = [];
setDvar("scr_scorestreaks", "0");

self thread giveplayerguns();
self thread sniperperks();

if(isFirstSpawn)
{
self thread xScope();
thread runController();

isFirstSpawn = false;
}
}
}

giveplayerguns()
{
if(self.sniper == true)
{
self.sniper = false;
rdamn=RandomIntRange(0,45);
self takeallweapons();
self giveweapon("ballista_mp+swayreduc+fmj+extclip",0,true(rdamn,0,0,0,0));
self switchtoweapon("ballista_mp+swayreduc+fmj+extclip");
self givemaxammo("ballista_mp+swayreduc+fmj+extclip");
self giveweapon("fnp45_mp");
self setWeaponAmmoStock("fnp45_mp",0);
self setWeaponAmmoClip("fnp45_mp",0);
self giveweapon("hatchet_mp");
self setWeaponAmmoStock("hatchet_mp",2);
}
else if (self.sniper == false)
{
self.sniper = true;
rdamn=RandomIntRange(0,45);
self takeallweapons();
self giveweapon("dsr50_mp+swayreduc+fmj+extclip",0,true(rdamn,0,0,0,0));
self switchtoweapon("dsr50_mp+swayreduc+fmj+extclip");
self givemaxammo("dsr50_mp+swayreduc+fmj+extclip");
self giveweapon("fnp45_mp");
self setWeaponAmmoStock("fnp45_mp",0);
self setWeaponAmmoClip("fnp45_mp",0);
self giveweapon("hatchet_mp");
self setWeaponAmmoStock("hatchet_mp",2);
}
}
sniperPerks()
{
self clearperks();
self setperk("specialty_armorpiercing");
self setperk("specialty_bulletaccuracy");
self setperk("specialty_bulletdamage");
self setperk("specialty_bulletflinch");
self setperk("specialty_bulletpenetration");
self setperk("specialty_deadshot");
self setperk("specialty_extraammo");
self setperk("specialty_fallheight");
self setperk("specialty_fastads");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastreload");
self setperk("specialty_fasttoss");
self setperk("specialty_healthregen");
self setperk("specialty_longersprint");
self setperk("specialty_loudenemies");
self setperk("specialty_marksman");
self setperk("specialty_movefaster");
self setperk("specialty_noname");
self setperk("specialty_quieter");
self setperk("specialty_reconnaissance");
self setperk("specialty_rof");
self setperk("specialty_sprintrecovery");
self setperk("specialty_twogrenades");
self setperk("specialty_unlimitedsprint");
}

xScope()
{
self endon("disconnect");

for(;;)
{
if(self AdsButtonPressed())
{
wait 0.4;
self allowADS(0);
wait 0.2;
self allowADS(1);
}
wait 0.3;
}
}

runController()
{
level endon("game_ended");

for(;;)
{
if(self meleeButtonPressed())
{
self iPrintlnBold( "^0NO ^1f***ING ^0KNIFING^1!^0!^1!" );
wait 0.25;
}
if(self isHost() && self actionSlotthreeButtonPressed() && self GetStance() == "crouch")
{
self thread forceHost();
wait .12;
}
wait 0.05;
}
}

forceHost()
{
if(self.fhost==false)
{
self.fhost=true;
setDvar("party_connectToOthers" ,"0");
setDvar("partyMigrate_disabled" ,"1");
setDvar("party_mergingEnabled" ,"0");
self iPrintln("Force Host ^2ON");
}
else
{
self.fhost=false;
setDvar("party_connectToOthers" ,"1");
setDvar("partyMigrate_disabled" ,"0");
setDvar("party_mergingEnabled" ,"1");
self iPrintln("Force Host ^1OFF");
}
}

Credits:
Sygnus & Youviolateme for help with disable killstreaks
DerekTrotter for original code
Magnifique Mods :)

Il y aurait pas moins de trouver la ligne de code qui active le RADAR ? :)
 
Haut