New Rocket Lanchers

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: If the words above my head says, "offline", than I'm not here.

New Rocket Lanchers

Post 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.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: New Rocket Lanchers

Post 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.
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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

Post by Faceman2000 »

I realize that, but I need to know what part to change it to and to what.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: New Rocket Lanchers

Post 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.
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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

Post 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.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: New Rocket Lanchers

Post 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*).
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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

Post 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?
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: New Rocket Lanchers

Post 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"
User avatar
Faceman2000
Master Sergeant
Master Sergeant
Posts: 173
Joined: Tue Mar 03, 2009 7:55 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
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

Post 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).
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: New Rocket Lanchers

Post by DarthD.U.C.K. »

i think its better you read the jedicreationguide in the documentation before editing weapons
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: New Rocket Lanchers

Post 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.
Post Reply