Page 1 of 1

New Rocket Lanchers

Posted: Thu Apr 23, 2009 7:49 am
by Faceman2000
Sorry if this has been answered somewhere, but I need to know how to make two weapons. One is a rocket launcher that will one-shot-kill all vehicles except spawn-point vehicles.

The other is a gun that is half-way between a bulldog RLR and a rocket launcher. I want it to be effective against vehicles and infantry.

Your help would be very appreciated.

Re: New Rocket Lanchers

Posted: Thu Apr 23, 2009 8:13 am
by B.I.G_Cookie
I'm not sure, but I think you have chust to change the .odf of the rocket launcher you want use.

Re: New Rocket Lanchers

Posted: Thu Apr 23, 2009 5:40 pm
by Faceman2000
I realize that, but I need to know what part to change it to and to what.

Re: New Rocket Lanchers

Posted: Thu Apr 23, 2009 6:05 pm
by Fiodis
Could you please describe the second in more detail?

As to the first, you mean a rocket launcher that cannot damage command vehicles, but is instantly deadly to everything else? You could do it very easily via LUA code, I'll type that up for you if you don't know LUA yourself; though you ought to take the time to learn.

Re: New Rocket Lanchers

Posted: Thu Apr 23, 2009 6:13 pm
by Faceman2000
Yes, that is what I mean for the first. I am trying to learn LUA, but so far I'm only doing small things with that. However, would the LUA you are referring to affect all rocket launchers? I just want one of my heroes to have it.

Re: New Rocket Lanchers

Posted: Thu Apr 23, 2009 6:33 pm
by Fiodis
It will affect only the rocket launchers you want it to affect. Is it a hero-unique weapon? If yes, then you could just use GetObjectLastHitWeaponClass. If it is not a hero-specific weapon, that normal units have it as well but you don't want it to do the same sort of damage, you'd have to add a bit talking about IfGetEntityClass (killer) = FindEntityClass (*odf of your hero*).

Re: New Rocket Lanchers

Posted: Fri Apr 24, 2009 1:27 am
by Faceman2000
Yeah, I want it to be hero-specific. Now, I know this will be a n00b question, but I feel justified in asking it, because I am new at modding. What is GetObjectLastHitWeaponClass?

Re: New Rocket Lanchers

Posted: Fri Apr 24, 2009 5:34 am
by Silas
for the second rocket launcher, do you just want to make it be able to shoot and/or reload faster? All you have to do is edit the com_weap_inf_rocketlauncherodf where it says the following:

Code: Select all

ReloadTime          = "4.0"
for an automatic weapon, remove the line about 'trigger single"

Re: New Rocket Lanchers

Posted: Fri Apr 24, 2009 8:25 am
by Faceman2000
Once again, will this affect all units? I want it as a class specific weapon (a sort of secondary hero you unlock with points).

Re: New Rocket Lanchers

Posted: Fri Apr 24, 2009 9:35 am
by DarthD.U.C.K.
i think its better you read the jedicreationguide in the documentation before editing weapons

Re: New Rocket Lanchers

Posted: Fri Apr 24, 2009 3:38 pm
by Fiodis
Agreed. It explains a lot about setting up a custom side.


And in response to your question, if you edit the rocket launcher's ODF file it will only affect that type of rocket launcher.