New Rocket Lanchers
Moderator: Moderators
- Faceman2000
- Master Sergeant

- Posts: 173
- Joined: Tue Mar 03, 2009 7:55 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: If the words above my head says, "offline", than I'm not here.
New Rocket Lanchers
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.
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.
- B.I.G_Cookie
- High General

- Posts: 839
- Joined: Sun Feb 22, 2009 4:28 pm
- Location: Frankfurt, Germany
Re: New Rocket Lanchers
I'm not sure, but I think you have chust to change the .odf of the rocket launcher you want use.
- Faceman2000
- Master Sergeant

- Posts: 173
- Joined: Tue Mar 03, 2009 7:55 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: If the words above my head says, "offline", than I'm not here.
Re: New Rocket Lanchers
I realize that, but I need to know what part to change it to and to what.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: New Rocket Lanchers
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.
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.
- Faceman2000
- Master Sergeant

- Posts: 173
- Joined: Tue Mar 03, 2009 7:55 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: If the words above my head says, "offline", than I'm not here.
Re: New Rocket Lanchers
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.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: New Rocket Lanchers
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*).
- Faceman2000
- Master Sergeant

- Posts: 173
- Joined: Tue Mar 03, 2009 7:55 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: If the words above my head says, "offline", than I'm not here.
Re: New Rocket Lanchers
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?
- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: New Rocket Lanchers
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:
for an automatic weapon, remove the line about 'trigger single"
Code: Select all
ReloadTime = "4.0"- Faceman2000
- Master Sergeant

- Posts: 173
- Joined: Tue Mar 03, 2009 7:55 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: If the words above my head says, "offline", than I'm not here.
Re: New Rocket Lanchers
Once again, will this affect all units? I want it as a class specific weapon (a sort of secondary hero you unlock with points).
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: New Rocket Lanchers
i think its better you read the jedicreationguide in the documentation before editing weapons
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: New Rocket Lanchers
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.
And in response to your question, if you edit the rocket launcher's ODF file it will only affect that type of rocket launcher.
