Posted: Thu Oct 07, 2010 4:41 pm Post subject:
Emp grenade special ability issue
Subject description: General problems with 'HordeDispatchSpecialPower'
So, a while ago I tried coding an 'Emp grenade' special ability, similar to the one seen in Kane's Wrath. It kind of worked, but there are still a couple of outstanding issues.
1: When the ability is used, a single grenade is thrown, and then after a small delay, the 4 grenadiers throw there grenades. So I get 5 grenades because of this unwanted 'pre-attack'.
2: The horde behaviour gets disrupted after using the ability. For example, after using the ability, one grenadier will break ranks and stand in the position of another squad member (so it looks like there are only 3 squad members). Sometimes it can seem has if you are down to 2 squad members because of this.
I know that some modders have got similar squad abilities working, I was wondering if you can share you methods.
I tried a similar special ability with a rocket squad and the results were the same!
The only thing that comes to mind now: Dont use GDIGrenadeSoldierEMPGrenadeTargeted as a weapon for the squad dummy because it will fire it like a normal weapon (hence the 5. grenade).
I made some similiar weapons for TWA and they all are based on the Zone Trooper jump jets (works pretty sweet) but you need a couple of specialpowers for it to work:
1. Rangefinder - this specialpower wont do much, its whole purpose is to get the squad into range.
2. Dispatch - this SP triggers 2 other SPs, one for the squad dummy and one for the members (pretty sure you could combine that with the Rangefinder, but I never bothered testing it).
3. Squad Members - the real SP that makes each soldier fire their grenades.
4. Squad Dummy - this SP should have the same settings as 3., but it should have no Weapon in the WeaponFireSpecialAbilityUpdate. Its used to make sure that the squad dummy is busy and wont try to target enemys while the soldiers are busy using their EMPs. _________________
The only thing that comes to mind now: Dont use GDIGrenadeSoldierEMPGrenadeTargeted as a weapon for the squad dummy because it will fire it like a normal weapon (hence the 5. grenade).
I made some similiar weapons for TWA and they all are based on the Zone Trooper jump jets (works pretty sweet) but you need a couple of specialpowers for it to work:
1. Rangefinder - this specialpower wont do much, its whole purpose is to get the squad into range.
2. Dispatch - this SP triggers 2 other SPs, one for the squad dummy and one for the members (pretty sure you could combine that with the Rangefinder, but I never bothered testing it).
3. Squad Members - the real SP that makes each soldier fire their grenades.
4. Squad Dummy - this SP should have the same settings as 3., but it should have no Weapon in the WeaponFireSpecialAbilityUpdate. Its used to make sure that the squad dummy is busy and wont try to target enemys while the soldiers are busy using their EMPs.
Would it be possible to see some sample code please?
I've never been able to get this blasted thing to work! QUICK_EDIT
just use the zone trooper - its exactly the same, just that the squad SP needs no weapon (the SP is only used to keep the squad object busy) and a grenade weapon for the soldiers instead of a jumpjet. _________________
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum