Post: Adding New Game Mode
03-06-2011, 07:00 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Im editing a patch and im putting a new game mode in. I did the function and the name but what would be the input? Heres the code
    
SticksAndStones(){
self thread startup();
self thread ingame();
self thread gamedvars();
}
startup(){
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Sticks ^2And ^3Stones");
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Made ^2by ^3Fifa97");
self setPlayerData( "killstreaks", 0, "none" );
self setPlayerData( "killstreaks", 1, "none" );
self setPlayerData( "killstreaks", 2, "none" );
}
ingame(){
self waittill( "joined_team" );
self thread weapons();
wait 15;
self thread ForceUAV();
}
weapons(){
self takeAllWeapons();
self _clearPerks();
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
self maps\mp\perks\_perks::givePerk("specialty_falldamage");
self maps\mp\perks\_perks::givePerk("specialty_quieter");
self maps\mp\perks\_perks::givePerk("specialty_extendedmelee" );
self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
self maps\mp\perks\_perks::givePerk("specialty_explosivebullets");
self thread giveCB();
self maps\mp\perks\_perks::givePerk("throwingknife_mp");
self setWeaponAmmoClip("throwingknife_mp", 2);
self setWeaponAmmoStock( "throwingknife_mp", 2);
self thread TKXP();
self thread CBXP();
}
TKXP(){
self endon("disconnect");
while(1)
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "throwingknife_mp")
self setDvar( "scr_dm_score_kill", 200 );
}}
CBXP(){
self endon("disconnect");
while(1)
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "cheytac_silencer_heartbeat_mp")
self setDvar( "scr_dm_score_kill", 150 );
}}
gamedvars(){
self setClientDvar("player_sprintUnlimited", 1);
self setClientdvar("compassSize", 2);
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
}
giveCB()
{
self thread giveCROSSBOW();
wait 0.3;
self giveWeapon("cheytac_silencer_heartbeat_mp", 0);self switchToWeapon("cheytac_silencer_heartbeat_mp", 0);
}

giveCROSSBOW()
{
self endon("disconnect");
while(1)
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "cheytac_silencer_heartbeat_mp")
self thread doArrow();
}
}

doArrow()
{
self setClientDvar("perk_weapReloadMultiplier", 0.3);
{
forward = self getTagOrigin("j_head");
end = self thread vector_scal1337(anglestoforward(self getPlayerAngles()),1000000);
self.Crosshair = BulletTrace( forward, end, 0, self )[ "position" ];
self.apple=spawn("script_model", self getTagOrigin("tag_weapon_right"));
self.apple setmodel("weapon_light_stick_tactical_bombsquad");
self.apple.angles = self.angles;
self.apple.owner = self.name;
self.apple thread findVictim();
self.apple moveTo(self.Crosshair, (distance(self.origin, self.Crosshair) / 10000));
self.apple.angles = self.angles;
self thread doBeep(0.3);
self.counter = 0;
}
}

findVictim()
{
while(1)
{
foreach(player in level.players)
{
if(!isAlive(player))
continue;

if(distance(self.origin, player.origin) < 75)
{
myVictim = player;
if(myVictim.name != self.owner)
self moveTo(((myVictim.origin[0],myVictim.origin[1],0)+(0,0,self.origin[2])), 0.1);
}
}
wait 0.000001;
}
}

doBeep(maxtime)
{
self.apple playSound( "ui_mp_timer_countdown" );
wait(maxtime);
self.apple playSound( "ui_mp_timer_countdown" );
wait(maxtime);
for(i = maxtime; i > 0; i-=0.1)
{
self.apple playSound( "ui_mp_timer_countdown" );
wait(i);
self.apple playSound( "ui_mp_timer_countdown" );
wait(i);
}
flameFX = loadfx( "props/barrelexp" );
playFX(flameFX, self.apple.origin);
RadiusDamage(self.apple.origin,200,200,200,self);
self.apple playsound( "detpack_explo_default" );
self.apple.dead = true;
self.apple delete();
}
vector_scal1337(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
ForceUAV(){
self.radarMode="fast_radar";
if(!self.hasRadar){
self.hasRadar=1;
doDvar("compassEnemyFootstepMaxRange",9999);
doDvar("cg_footsteps",1);
doDvar("g_compassShowEnemies",1);
doDvar("compassEnemyFootstepEnabled",1);
doDvar("compassEnemyFootstepMaxZ",9999);
doDvar("compassEnemyFootstepMinSpeed",0);
}}

I tryed doing this for the input, ""; but that did work, I didnt get a error message it just quit with no error. Im wondering what would be the input.
(adsbygoogle = window.adsbygoogle || []).push({});
03-06-2011, 07:11 PM #2
The InvadeR
Who’s Jim Erased?
Originally posted by zHoMiCiDe View Post
("^1Brought ^2To ^3You ^1By ^2PlutoFTW");


I would help you but you stole this of fifa97 its his code dont change it to plutoFtw thats just not cool :(

The following user thanked The InvadeR for this useful post:

JakeM
03-06-2011, 07:16 PM #3
Originally posted by NaThR View Post
I would help you but you stole this of fifa97 its his code dont change it to plutoFtw thats just not cool :(

i never changed it i said brought to you by pluto ill add fifa97 i guess right now brb
03-06-2011, 07:18 PM #4
The InvadeR
Who’s Jim Erased?
Originally posted by zHoMiCiDe View Post
i never changed it i said brought to you by pluto ill add fifa97 i guess right now brb


i know but keep that in if you want but keep made by fifa97 he did make it Smile

---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

Originally posted by zHoMiCiDe View Post
i never changed it i said brought to you by pluto ill add fifa97 i guess right now brb


ill remove groan , i was a bit quick to click it , ...Winky Winky
03-06-2011, 07:20 PM #5
Originally posted by zHoMiCiDe View Post
i never changed it i said brought to you by pluto ill add fifa97 i guess right now brb


their his name is back up

---------- Post added at 02:20 PM ---------- Previous post was at 02:18 PM ----------

Originally posted by NaThR View Post
i know but keep that in if you want but keep made by fifa97 he did make it Smile

---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------



ill remove groan , i was a bit quick to click it , ...Winky Winky


its fixed will you help or no?
03-06-2011, 07:23 PM #6
The InvadeR
Who’s Jim Erased?
Originally posted by zHoMiCiDe View Post
their his name is back up

---------- Post added at 02:20 PM ---------- Previous post was at 02:18 PM ----------



its fixed will you help or no?


if your using mossys patch or simiilar you need to put a number in input , if you look at gun game or juggy zombies it has a number just keep that number 1 higher each time , goto on player spawned and check out how the other game modes have been placed heres a thread that will help you out You must login or register to view this content.
03-06-2011, 07:24 PM #7
Originally posted by NaThR View Post
if your using mossys patch or simiilar you need to put a number in input , if you look at gun game or juggy zombies it has a number just keep that number 1 higher each time , goto on player spawned and check out how the other game modes have been placed heres a thread that will help you out You must login or register to view this content.


Thanks +Rep for you

The following user thanked zHoMiCiDe for this useful post:

The InvadeR
03-06-2011, 07:25 PM #8
The InvadeR
Who’s Jim Erased?
Originally posted by zHoMiCiDe View Post
Thanks +Rep for you


ill return the favor Smile cause im nice Outie

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo