View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:48 pm



Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
 Friendly Fire 
Author Message
User avatar

Joined: Wed May 20, 2009 12:46 pm
Posts: 40
Location: At a secret laboratory dividing by zero
Reply with quote
Post Friendly Fire
Alright i have an idea for a mod but i need a push in the right direction. Is it possible to somehow make the bullets, rockets (not the splash damage) that your friendlies fire go through you. I'm sick of the bots that stand behind me, cause they always end up shooting me

PS: not sure if its been done before


Thu May 21, 2009 7:02 am
Profile
Banned
User avatar

Joined: Thu May 14, 2009 9:22 pm
Posts: 826
Location: Lookin' forward to mocking people on Jan 1st 2013.
Reply with quote
Post Re: Friendly Fire
From what I know, that's not possible without Lua, but the thing is, that even if you manage to make fire ignore friendlies, you'll have to make two sets of weapons, one for each team (unless Lua can detect which team's actors the weapon's held by, and adjust accordingly), and make sure that you don't buy the weapons that ignore the other team.
So... the best thing to do is just stop using bots for anything other than target practice and base defense. Their accuracy is horrendous, anyway.


Thu May 21, 2009 9:29 am
Profile YIM
User avatar

Joined: Wed May 20, 2009 12:46 pm
Posts: 40
Location: At a secret laboratory dividing by zero
Reply with quote
Post Re: Friendly Fire
Alright then that's just to much work screw it

You can lock this or get rid of it or whatever you admins do


Fri May 22, 2009 6:31 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Friendly Fire
In the .ini for the weapon, there is a ignorethis = 1 variable, meaning bullets do not hurt/go through the user.
So it might be possible to do what you're talking about.

I mean, look at this.
viewtopic.php?f=61&t=14819&start=0
Bombs that only hurt the enemy team.
Study the lua files...


Fri May 22, 2009 7:47 am
Profile WWW
User avatar

Joined: Wed May 20, 2009 12:46 pm
Posts: 40
Location: At a secret laboratory dividing by zero
Reply with quote
Post Re: Friendly Fire
Dont lock it

One problem i cant exactly read lua scripting im bairly able to read the normal script for cortex


Fri May 22, 2009 7:56 am
Profile
User avatar

Joined: Fri Mar 02, 2007 6:59 am
Posts: 1726
Location: NSW, Australia
Reply with quote
Post Re: Friendly Fire
Then there is little to do except just learn.
basic cortex command script is easy as anything (as long as english is your native language).
Lua, I'm not sure: I've never mucked around in it.
But if those morons over at facepunch can do it SO CAN WE!


Fri May 22, 2009 1:49 pm
Profile
A HUMAN BRAIN, SAFELY INSULATED FROM THE TERRORS OF HYPERSPACE
User avatar

Joined: Sun Jan 28, 2007 8:54 pm
Posts: 1070
Location: Somewhere beyond the endless sea of hyperspace, fighting for your right to call a planet home.
Reply with quote
Post Re: Friendly Fire
A variable for 'IgnoresSameTeam' or something would have to be implemented. If it could be done otherwise, I get the idea it would be very hacky and unreliable.


Fri May 22, 2009 1:53 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Friendly Fire
You'd have to get whatever you're shooting at, what team it is, then set hitsmos = true/false accordingly.

This would be yeah, pretty hacky and unreliable.


Fri May 22, 2009 2:30 pm
Profile
User avatar

Joined: Wed May 20, 2009 12:46 pm
Posts: 40
Location: At a secret laboratory dividing by zero
Reply with quote
Post Re: Friendly Fire
So far this is sounden way out of my league i dont even know if i can try this


Fri May 22, 2009 11:44 pm
Profile
User avatar

Joined: Sun Dec 16, 2007 12:09 am
Posts: 1115
Location: Being The Great Juju
Reply with quote
Post Re: Friendly Fire
You could, oh, I don't know, not stand in front of guns :roll:

It would be a little fruity if all your teammates' bullets went through you. A big problem is the 2-D factor; games like this have no Z plane, only an X & Y. Therefore, for the game to make sense, you have to assume that every single thing in the game is on the same spot in the Z plane, just with different coordinates on the X/Y planes. How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface?


Sun May 24, 2009 3:01 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Friendly Fire
Ragdollmaster wrote:
You could, oh, I don't know, not stand in front of guns :roll:

It would be a little fruity if all your teammates' bullets went through you. A big problem is the 2-D factor; games like this have no Z plane, only an X & Y. Therefore, for the game to make sense, you have to assume that every single thing in the game is on the same spot in the Z plane, just with different coordinates on the X/Y planes. How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface?


But if it's perfect 2d then why is there a background?


Sun May 24, 2009 3:22 am
Profile
User avatar

Joined: Sun Dec 16, 2007 12:09 am
Posts: 1115
Location: Being The Great Juju
Reply with quote
Post Re: Friendly Fire
Perfect 2-D in the sense that all of the processing is done on one flat plane. Background images are just illusions. As you can't actually interact with the background, it's logical to assume that it's a completely separate X/Y plane than the tangible X/Y plane that CC uses for processing gameplay. Now, if the two were connected, the distance between them would be considered the Z plane, and you would be able to move between all the separate X/Y planes. Kind of like in LittleBigPlanet.


Sun May 24, 2009 3:37 am
Profile
User avatar

Joined: Wed May 20, 2009 3:10 pm
Posts: 366
Location: Århus, Denmark
Reply with quote
Post Re: Friendly Fire
Quote:
How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface?


I dont think that would be a problem cause the idea with a 2d game is (often) that it is a illusion of the 3d version but with better control and you look from the side. In that situation that you descripted It could make sense cause in the real world you wouldnt stand and fight with another and another guy and mabey 5 other guys in the same x, y or z axe! There for there could be a big chance that one of the guys behind him is a bit from the side so he could shoot pass him. The idea of removing frendly fire is a really good idea i think, at least that you could turn it on and of in options.


Thu May 28, 2009 5:26 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Friendly Fire
Weeeeeell I tried, and failed. But I think I've got the right general idea.
No errors, it just doesn't work.
Maybe someone who knows what they're doing could fix this up?


Attachments:
File comment: DOES NOT WORK
NOFFGUN.rte.rar [1.72 KiB]
Downloaded 123 times
Thu May 28, 2009 10:12 pm
Profile
User avatar

Joined: Fri May 11, 2007 4:30 pm
Posts: 1040
Location: England
Reply with quote
Post Re: Friendly Fire
I just thought of a way that data could implement this, you know how guns have FireIgnoreThis, well there could be an option (in skirmish) to turn friendly fire off which basically makes FireIgnoreThis work for your whole team. That is the only way I think data would ever have a friendly fire off option (just extending a function, only for skirmish).


Thu May 28, 2009 11:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 18 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.039s | 14 Queries | GZIP : Off ]