GreatEmerald / UT3Vehicles

The vehicles portion of the UT3Style mod for Unreal Tournament 2004.
Other
3 stars 4 forks source link

Hellbender Driver Turret: Corona WIP, Help Needed #189

Open HellDragon-HK opened 6 years ago

HellDragon-HK commented 6 years ago

DO NOT MERGE

I've been trying to get a corona for the driver turret but no luck...

C:\Unreal Anthology\UT2004\UT3Vehicles\Classes\UT3HellbenderSideGun.uc(144) : Error, 'bNoTeamBeacon': Bad command or expression

So remove the bNoTeamBeacon = True (which I'm not sure if it's even possible to function without as that's basically if no health bar is true right?) and then I get...

C:\Unreal Anthology\UT2004\UT3Vehicles\Classes\UT3HellbenderSideGun.uc(117) : Error, Unknown Function 'TeamChanged' in 'Class Onslaught.ONSPRVSideGun'

GreatEmerald commented 6 years ago

I'm think the team beacon is the triangle that is shown above vehicles. That part just disables it before destroying the effects.

There is no TeamChanged function for a weapon. Instead, you should do these changes on the associated ONSWeaponPawn class; which in this case does not exist (no UT3HellbenderSideGunPawn, so you should make one. Check how the rear gun pawn works and see the difference between the lines: https://github.com/GreatEmerald/UT3Vehicles/blob/20113140f4334a117210b8210e1b9e6755742ceb/Classes/UT3Hellbender.uc#L217-L218

HellDragon-HK commented 6 years ago

So DriverWeapons will need to become UT3HellbenderSideGunPawn?

GreatEmerald commented 6 years ago

Yea, you'll need to replace WeaponClass with WeaponPawnClass.

HellDragon-HK commented 6 years ago

Don't think that's going to work.

Unknown member WeaponPawnClass in DriverWeapons

unless.....does it need to be done like the Rear Gun (())?

Nope that didn't work either, still the same error.

DriverWeapons=((WeaponPawnClass=Class'UT3HellbenderSideGunPawn',WeaponBone="SecondaryTurretYaw"))

Changing it back to WeaponClass compiles but results in no turret in-game.