Page 1 of 2
Quick question.
Posted: Tue Jun 22, 2010 9:36 pm
by fasty
I am wondering if is it possible to make "com_weap_inf_force_choke" affect multiple targets and/or increase its range? If so, how may I achieve this?
I tried adding this to the .odf:
MaxTargets = "5"
NoChaining = "1"
With no success.
Re: Quick question.
Posted: Tue Jun 22, 2010 10:24 pm
by myers73
NoChaining = "0"
Re: Quick question.
Posted: Tue Jun 22, 2010 10:53 pm
by Teancum
Yep, NoChaining = "1" would tell the game that you do not want to chain the attack ("1" is equal to setting this condition to true).
Re: Quick question.
Posted: Tue Jun 22, 2010 11:25 pm
by fasty
Okay thanks. I thought that was the case at first.
Re: Quick question.
Posted: Wed Jun 23, 2010 1:34 am
by SW_elite
`Just a question, where do you learn this stuff?
Re: Quick question.
Posted: Wed Jun 23, 2010 1:50 am
by lucasfart
I haven't got a link, but on Psych0freds site, he has a document with all the used and unused lua and odf commands. This can come in very handy, and i have a feeling thats where some people get all this from. Otherwise, just have a look at stock odf's and you will find most of what you're looking for in there...
Re: Quick question.
Posted: Wed Jun 23, 2010 8:02 am
by myers73
lucasfart wrote:I haven't got a link, but on Psych0freds site, he has a document with all the used and unused lua and odf commands. This can come in very handy, and i have a feeling thats where some people get all this from. Otherwise, just have a look at stock odf's and you will find most of what you're looking for in there...
just take time reading through the stock ODFs
Re: Quick question.
Posted: Tue Jun 29, 2010 12:06 pm
by fasty
Okay so I've been trying with no luck to get this still. I changed it to" NoChaining = "0" with no difference. It still only chokes one person.
My chokes .odf:
Let me know if anythings wrong. It might be possible that this is impossible.

Re: Quick question.
Posted: Tue Jun 29, 2010 2:35 pm
by myers73
dont those two lines go in the _ord?
Re: Quick question.
Posted: Tue Jun 29, 2010 7:12 pm
by fasty
myers73 wrote:dont those two lines go in the _ord?
I have no _ord?
Where do I find it?
Re: Quick question.
Posted: Tue Jun 29, 2010 8:07 pm
by Maveritchell
Maybe you should post your entire .odf so that we have some basis for comparison.
Areaeffectweapons (like choke) don't have any _ord file - they only use a single .odf.
Re: Quick question.
Posted: Tue Jun 29, 2010 8:25 pm
by fasty
That is my entire .odf.
Copied and pasted the whole thing.
Do you mean put it on FileFront for you?
Re: Quick question.
Posted: Tue Jun 29, 2010 8:38 pm
by Maveritchell
fasty wrote:That is my entire .odf.
Copied and pasted the whole thing.
Do you mean put it on FileFront for you?
Nope, my mistake completely. I was looking at what you posted in your first post and didn't notice that you'd posted it in its entirety a few posts up.
Try removing the NoChaining line completely from your .odf. It doesn't need to be there.
Re: Quick question.
Posted: Tue Jun 29, 2010 9:07 pm
by fasty
This is strange. I choke someone, then look in the free cam and I'm choking random units on the other side of the map. I can't really describe it well so here's an image.
Has this ever been done before? Any more suggestions?
EDIT:
When I continue holding the mouse down to choke, and kill them, the other random guys are released and have taken no damage.
(This is with Mav's suggestion to take out the no chaining line. I don't think this happened with that line.)
Re: Quick question.
Posted: Tue Jun 29, 2010 9:20 pm
by Maveritchell
Then it's doing exactly what you told it to do. You have a ridiculously large area set as the effect area, and if there are multiple units in the range of the weapon it will hit random units (up to the MaxTargets amount). The reason it is doing no damage is because the weapon reduces in damage based on distance.
Your first step should be to use a reasonable set of numerical parameters for your weapon. I'm not sure entirely what you're trying to do, but a good rule is never start with huge numbers. Get something working on a small scale (even if you intend to make it big) and then work up from there.
Re: Quick question.
Posted: Tue Jun 29, 2010 9:29 pm
by fasty
Maveritchell wrote:You have a ridiculously large area set as the effect area, and if there are multiple units in the range of the weapon it will hit random units (up to the MaxTargets amount).
Whoops. I must have messed with those numbers when I was experimenting. I tried a lot to get this to work.
Maveritchell wrote:I'm not sure entirely what you're trying to do
I suppose I wasn't very clear. I'm trying to make it so when I choke a guy, the other guys three feet from him get choked with him. Kind of like force lightning, only choke effect. Yes, I looked at the lightning .odf; it just confused me.

Re: Quick question.
Posted: Tue Jun 29, 2010 9:39 pm
by Maveritchell
fasty wrote:I suppose I wasn't very clear. I'm trying to make it so when I choke a guy, the other guys three feet from him get choked with him. Kind of like force lightning, only choke effect. Yes, I looked at the lightning .odf; it just confused me.

You were textually clear enough; the numbers were confusing, though. Just make those numbers more reasonable and it'll work like you want. E.g.
Re: Quick question.
Posted: Tue Jun 29, 2010 9:57 pm
by fasty
Copied what you said and still no affect. It doesn't choke random units anymore, but it now only chokes one unit, like normal. Somethings not right here.
I tried taking no chaining out again, and still same ole single choke.
I made sure about this by having clones stand so close together they were basically uh...queer? Only choked one guy.

Re: Quick question.
Posted: Tue Jun 29, 2010 10:32 pm
by Maveritchell
fasty wrote:Copied what you said and still no affect. It doesn't choke random units anymore, but it now only chokes one unit, like normal. Somethings not right here.
I tried taking no chaining out again, and still same ole single choke.
I made sure about this by having clones stand so close together they were basically uh...queer? Only choked one guy.

Don't know what you could be doing to make it not work. Here's that exact same .odf tested:
You're either not copying the data, using the wrong weapon, or linking to the wrong .odf.
Re: Quick question.
Posted: Mon Jul 05, 2010 7:13 pm
by fasty