UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Disable Friendly Fire

broken avatar :(
Created 9 years ago
by jbird
0 Members and 1 Guest are viewing this topic.
4,480 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 3 years ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
×
jbird's Groups
This will make it so you can shoot and knife when you are next to other players and remove the green crosshairs.

In _zombiemode.gsc, look for:
Code Snippet
Plaintext
onPlayerSpawned()
Then, look for:
Code Snippet
Plaintext
self SetClientDvars
And add:
Code Snippet
Plaintext
"friendlyfire_enabled", "0",
"g_friendlyfireDist", "0"
I'm not sure if you need both of them, but that's what I did and it worked.

If you restart the map, it sets back to the default dvars. To fix this, just add the same two clientdvars in
Code Snippet
Plaintext
onPlayerConnect_clientDvars()
which is right above onPlayerSpawned()
Last Edit: July 01, 2015, 09:43:02 pm by jbird
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
not trying to "detract" here... but do you really think we need a entire tutorial - to change a DVAR, and at that, a DVAR that does pretty much nothing?   :accepted:
Last Edit: July 02, 2015, 02:18:14 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 3 years ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
jbird's Groups
not trying to "detract" here... but do you really think we need a entire tutorial - to change a DVAR, and at that, a DVAR that does pretty much nothing?   :accepted:
It's not about how simple it is, it's about how many people know how to do it. And to me, this is VERY useful and I know people who would probably love this in some of their maps as well. I made this for future reference for other who do not know how to do this and simply want to figure out how.
Last Edit: July 02, 2015, 05:07:40 am by jbird
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 24 February 2014
Last active: 2 years ago
Posts
240
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Mapper
My Groups
More
×
josemassacre's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
josemassacre's Contact & Social Links
It's not about how simple it is, it's about how many people know how to do it. And to me, this is VERY useful and I know people who would probably love this in some of their maps as well. I made this for future reference for other who do not know how to do this and simply want to figure out how.
thanks for this tutorial man, i wanted to use invincible ai, but if i shot them it would end the game because of friendly fire. so you saved the day once again!

 
Loading ...