Post: Code: Enable Friendly Fire
01-10-2011, 09:08 AM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); Enable Friendly Fire
    
if (level.friendlyfire >= 1) {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 0);
setDvar("ui_friendlyfire", 0);
level.friendlyfire = 0;
self iprintln("Friendly Fire Disabled");
wait 1;
map_restart(1);
} else {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 1);
setDvar("ui_friendlyfire", 1);
level.friendlyfire = 1;
self iprintln("Friendly Fire Enabled");
wait 1;
map_restart(1);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to EliteMossy for this useful post:

-Skyline, <Jimbo>, Mr.Azoz, uhChad, Wild., YKM!!
01-10-2011, 11:33 AM #2
YKM!!
You talkin to me?
Originally posted by EliteMossy View Post
Enable Friendly Fire
    
if (level.friendlyfire >= 1) {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 0);
setDvar("ui_friendlyfire", 0);
level.friendlyfire = 0;
self iprintln("Friendly Fire Disabled");
wait 1;
map_restart(1);
} else {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 1);
setDvar("ui_friendlyfire", 1);
level.friendlyfire = 1;
self iprintln("Friendly Fire Enabled");
wait 1;
map_restart(1);
}



If want to add the code to mod menu ido like that?

/menu.function[menu.function.size+1] = ::if (level.friendlyfire >= 1);
01-10-2011, 11:45 AM #3
Originally posted by YKM
If want to add the code to mod menu ido like that?

/menu.function[menu.function.size+1] = ::if (level.friendlyfire >= 1);


Yoo put like

/menu.function[menu.function.size+1] = ::FriendlyFire;

and

    FriendlyFire(){
if (level.friendlyfire >= 1) {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 0);
setDvar("ui_friendlyfire", 0);
level.friendlyfire = 0;
self iprintln("Friendly Fire Disabled");
wait 1;
map_restart(1);
} else {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 1);
setDvar("ui_friendlyfire", 1);
level.friendlyfire = 1;
self iprintln("Friendly Fire Enabled");
wait 1;
map_restart(1);
}

The following 2 users say thank you to Tuhoaja for this useful post:

-Skyline, YKM!!
01-10-2011, 06:49 PM #4
This is awesome!!!

Its things like this that keep MW2 modding fun, now that everyone can host a lobby, its a matter of who has the best patch.

I guess I can take out the advertising code, seeing as how its not needed anymore .. and replace it with this.

Thanks Mossy Smile
01-11-2011, 12:04 AM #5
It dosent work for me it gives me a syntax error... :(
01-11-2011, 12:13 AM #6
Originally posted by gigoo View Post
It dosent work for me it gives me a syntax error... :(


Yo same and i cant get it into menu
01-11-2011, 12:24 AM #7
REZNET \|/
The Land Of The Lost.....
lol this would be fun to do if u were pissed at sum1
01-17-2011, 04:44 AM #8
_StAtEaMiNd_
iNSSANNEEiN-DBRAiiN
MoSSy PLease UpDate ThiS!!!
01-17-2011, 05:02 AM #9
Originally posted by EliteMossy View Post
Enable Friendly Fire
    
if (level.friendlyfire >= 1) {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 0);
setDvar("ui_friendlyfire", 0);
level.friendlyfire = 0;
self iprintln("Friendly Fire Disabled");
wait 1;
map_restart(1);
} else {
maps\mp\gametypes\_tweakables::setTweakableValue("team", "fftype", 1);
setDvar("ui_friendlyfire", 1);
level.friendlyfire = 1;
self iprintln("Friendly Fire Enabled");
wait 1;
map_restart(1);
}


Thanks Mossy i will be sure to add this to my list of codes thank you!!! Upside Down Happy you should put all of your codes on here so i can see what i dont have thanks man i appreciate it :hitman: :y: :y: :y:
01-17-2011, 07:06 AM #10
bonbonbon
dead babies in a tree
This is sexy. I'm gonna play with it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo