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-17-2011, 08:30 AM #11
Justin
Juzzy Dee Music
Haha will be the best way to piss people off :y:
01-21-2011, 05:50 PM #12
Originally posted by TuhoajaFIN View Post
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);
}


you forgot to close with another "}"
01-21-2011, 05:53 PM #13
Originally posted by jase1990 View Post
you forgot to close with another "}"


yea lol:carling:
01-21-2011, 10:41 PM #14
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);
}


whats the news on you releasing your Private Patch?
01-21-2011, 11:04 PM #15
!x-MONKEY-BOMB!
League Champion
couldn't you make it dvar though. Like setDvar ("ui_allowfriemdlyfire"1") or whatever the code is from cod4. Sorry if I'm wrong I'm new to the mw2 patches and sorry if I made a mistake in the coding I'm on my iTouch[COLOR="Silver"

---------- Post added at 06:04 PM ---------- Previous post was at 06:02 PM ----------

[/COLOR]Ha sorry my mistake I just looked closer at the
     box 
and it's there. I couldn't see on the mobile version
02-02-2011, 08:49 PM #16
<Jimbo>
</Jimbo>
to add to admin menu in mossy's private patch v1

menu.namer[16]"Enable Friendly Fire";
menu.funcs[16]::killthesuckerZ;

then add this somewhere in the same or linked gsc

killthesuckerZ(){
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);
}}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo