Page 1 of 1

Gungan Problem *SOLVED*

Posted: Thu Jul 19, 2007 11:33 am
by Aman/Pinguin
Well,
It's a very easy question but:
How do i create a Sniper with the Model of a Gungan?
I copied all gungan files in my rep side folder and added him to rep.req
I created a new ODF which looks like this:

Code: Select all

[GameObjectClass]
ClassParent         = "com_inf_default"
GeometryName        = "nab_inf_gungan.msh"

[Properties]
UnitType            = "Scout"

GeometryName        = "nab_inf_gungan"
GeometryLowRes      = "nab_inf_gungan_low1"
SkeletonName        = "gungan"
SkeletonRootScale   = "1.1"

OverrideTexture     = "gungan03"

NumTentacles        = "2"
BonesPerTentacle    = "3"
TentacleCollType    = "0"

//this keeps the player from entering first person with this char
forcemode                       = 1

MaxHealth       = 300.0
MaxSpeed            = 8.0       // base forward speed
MaxStrafeSpeed      = 6.0       // base right/left speed

WEAPONSECTION = 1
WeaponName         = "rep_weap_inf_sniper_rifle"
WeaponAmmo         = 7

WEAPONSECTION = 2
WeaponName         = "rep_weap_inf_pistol"
WeaponAmmo         = 2

WEAPONSECTION = 3
WeaponName         = "rep_weap_inf_thermaldetonator"
WeaponAmmo         = 2
WeaponChannel      = 1

WEAPONSECTION = 4
WeaponName         = "rep_weap_inf_autoturret_dispenser"
WeaponAmmo         = 1
WeaponChannel      = 1

WEAPONSECTION = 5
WeaponName         = "rep_weap_award_sniper_rifle"
WeaponAmmo         = 6

WEAPONSECTION = 6
WeaponName         = "rep_weap_award_pistol"
WeaponAmmo         = 6

CAMERASECTION           = "STAND"

EyePointOffset          = "0.0 2.0 0.0"
TrackOffset             = "0.0 -0.0 3.75"
TiltValue           = "7"

CAMERASECTION           = "CROUCH"

EyePointOffset          = "0.0 2.0 0.0"
TrackOffset             = "0.0 -0.0 3.75"
TiltValue           = "7"

CAMERASECTION           = "SPRINT"

EyePointOffset          = "0.0 2.0 0.0"
TrackOffset             = "0.0 -0.0 5.0"
TiltValue           = "7"
CameraBlendTime         = "0.75"

VOUnitType              = 171
HurtSound               = "gungan_hurt"
DeathSound              = "gungan_die"
ShockFadeOutTime        = ""
ShockFadeOutGain        = ""
ShockFadeInTime         = ""
ShockSound              = ""
ClothingRustleSound     = ""
LowHealthSound          = ""
LowHealthThreshold      = "1.1"

VOSound = "gungan_inf_chatter_AcquiredTarget    AcquiredTarget"

FoleyFXClass            = "wok_inf_soldier"


AISizeType          = "SOLDIER"


I added the gungan to the lua too
But the unit doesnt appears ingame...

Is something wrong with the ODF?
Or do i have to add something else to the lua?


- Pinguin


ps.: sorry if my english isn't easy to understand ;)

RE: Gungan Problem

Posted: Thu Jul 19, 2007 11:43 am
by Master Fionwë
Did you add a .req to the req folder?

Posted: Thu Jul 19, 2007 1:07 pm
by Aman/Pinguin
Yes, of course. :?

Posted: Thu Jul 19, 2007 1:11 pm
by Caleb1117
Did you prep a new side in:
C:\BF2_ModTools\data_ABC\_BUILD\Sides?

Or are you just modifying the rep side?

Posted: Thu Jul 19, 2007 1:18 pm
by Aman/Pinguin
modifying rep side ^^

I clean and munge everything right now... maybe it works then

Posted: Thu Jul 19, 2007 3:53 pm
by Aman/Pinguin
It still dont works... any ideas?

Posted: Thu Jul 19, 2007 9:19 pm
by Snork
It would be easier to just copy the republic weapons you want to use to the gungan side and then give them to one of the gungans.

Posted: Fri Jul 20, 2007 1:03 am
by phazon_elite
Off Topic: Oh noes, first Majin had a Gungan special sniper unit, and now we have another one! LOL

On Topic: Do you have all the models for the Gungan and Weapons? Without models nothing exists in the game world (except for sprites. Curse you sprites!).

- EP-782

Posted: Fri Jul 20, 2007 6:08 am
by Aman/Pinguin
On Topic: Do you have all the models for the Gungan and Weapons? Without models nothing exists in the game world (except for sprites. Curse you sprites!).
I have all files for the Gungan but not for the weapons, because i dont use them...

EDIT: LOL, IM DUMB!!!! I've controlled again every files and found in rep.req this:

ucft
{
REQN
{
"lvl"
"rep_fly_anakinstarfighter_sc"
"rep_fly_arc170fighter_dome"
"rep_fly_arc170fighter_sc"
"rep_fly_assault_dome"
"rep_fly_cat_dome"
"rep_fly_gunship"
"rep_fly_command"
"rep_fly_gunship_sc"
"rep_fly_gunship_dome"
"rep_fly_jedifighter_dome"
"rep_fly_jedifighter_sc"
"rep_fly_naboo_starfighter"
"rep_fly_ride_gunship"
"rep_fly_vwing"
"rep_hero_oddball"
"rep_hero_oddball_con"
"rep_inf_ep3_engineer"
"rep_inf_ep3_jettrooper"
"rep_inf_ep3_officer"
"rep_inf_ep3_pilot"
"rep_inf_ep3_rifleman"
"rep_inf_ep3_marine"
"rep_inf_ep3_rocketeer"
"rep_inf_ep3_sniper"
"rep_inf_gungan_sniper
"rep_veh_remote_terminal"

}

}

It should be "rep_inf_gungan_sniper"!!!!!
SRY ^^
And thanks for the help :)

Posted: Fri Jul 20, 2007 7:24 am
by Snork
You figured it out on your own? Good! A modder who isn't totally helpless and quits after 1 week!

Posted: Fri Jul 20, 2007 1:34 pm
by Aman/Pinguin
Snork wrote:You figured it out on your own? Good! A modder who isn't totally helpless and quits after 1 week!
hehe thanks :D