Getting the engineer to heal other ai

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
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Getting the engineer to heal other ai

Post by naruto2693 »

I tried editing the powerup dispenser so that the ai would heal other ai, besides just healing the player but when I started the game, the ai only healed me, what's going on? Could this be done, or is this hardcoded into swbfII and can't be edited? :shock:

I added

TargetEnemy = "0"
TargetNeutral = "0"
TargetFriendly = "1"

TargetPerson = "1"
TargetAnimal = "0"
TargetDroid = "0"
TargetVehicle = "0"
TargetBuilding = "0"

AITargetPerson = "1"
AITargetAnimal = "1"
AITargetDroid = "1"
AITargetVehicle = "0"
AITargetBuilding = "0"
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "dispenser"
ClassParent = "com_weap_inf_powerup_dispenser"

[Properties]
IconTexture = "HUD_powerup_icon"

//MuzzleFlash = "small_muzzle_flash"
//Discharge = "small_smoke_effect"

//GeometryName = "com_weap_inf_medkit"

RoundsPerClip = "3"
ReloadTime = "1.0"
LockOnRange = "80.0"
LockTime = "0.4"

//AnimationBank = "grenade"
OffhandWeapon = 1

RefillFromItem = 0

TrackingSound = ""

WEAPONSECTION = 1

ModeTexture = "HUD_weap_health"
ReticuleTexture = "reticule_00"
OrdnanceName = "com_item_powerup_dual"

ShotDelay = "0.0"
MaxItems = "4.0"

AutoAimSize = "1.0"

TargetEnemy = "0"
TargetNeutral = "0"
TargetFriendly = "1"

TargetPerson = "1"
TargetAnimal = "0"
TargetDroid = "0"
TargetVehicle = "0"
TargetBuilding = "0"

AITargetPerson = "1"
AITargetAnimal = "1"
AITargetDroid = "1"
AITargetVehicle = "0"
AITargetBuilding = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5"

MinStrength = "0.3"
MaxStrength = "0.4"
MaxPressedTime = "0.0"

FireSound = "com_weap_throw"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = "com_weap_inf_equip_sm"
ChargeSound = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

are you sure that they don't heal other ai?

it took me over a month just to find out that giving the driod engineers a fusion cutter and setting it to heal actually makes them self heal.

(also on that same day in the same battle i found out that the clone engineer could fusion cutter kill driods from anywhere, completly ignoring ranges that i set)
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Getting the engineer to heal other ai

Post by AQT »

@Dakota: That is nothing new. Naruto2693 was referring to how AI units with the Dispense Health & Ammo weapon and UnitType Pilot do not give powerup packs to other AI units but only to human players and themselves.

This could be hardcoded, but I am not sure.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

AQT wrote:@Dakota: That is nothing new. Naruto2693 was referring to how AI units with the Dispense Health & Ammo weapon and UnitType Pilot do not give powerup packs to other AI units but only to human players and themselves.

This could be hardcoded, but I am not sure.
i know that he was refering to the powerups but i was just giving him an example.
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Re: Getting the engineer to heal other ai

Post by naruto2693 »

This could be hardcoded, but I am not sure.

OH NOES :shock:

I am going to keep trying until I get results, I just might discover something, if this has been discovered, tell me who did it, LOL I really need to know. :thumbs:

EDIT
Dakota wrote:are you sure that they don't heal other ai?

it took me over a month just to find out that giving the driod engineers a fusion cutter and setting it to heal actually makes them self heal.

(also on that same day in the same battle i found out that the clone engineer could fusion cutter kill driods from anywhere, completly ignoring ranges that i set)
Yeah they self heal because you set the fusion cutter to heal droids, which is itself, that is awesome.

Double posting is against the RULES; please EDIT your post instead -Staff
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Getting the engineer to heal other ai

Post by AQT »

@naruto2693: You need to please stop double posting.
Dakota wrote:i know that he was refering to the powerups but i was just giving him an example.
An example of a completely different weapon, but okay.
User avatar
1FGR1NightGhost
Don't feed the troll (that's me)
Posts: 85
Joined: Wed Jun 08, 2011 12:01 pm
Projects :: Bornesia Kastarian Docks
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Getting the engineer to heal other ai

Post by 1FGR1NightGhost »

Funny, the AI units used in my mods give themselves fakehealth. Its so sad but almost funny watch :lol:
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

1FGR1NightGhost wrote:Funny, the AI units used in my mods give themselves fakehealth. Its so sad but almost funny watch :lol:
yes, its real funny all the way to the point they run up to you and give you a good taste...


I just got an idea. do you have to use the regular powerups? you could use either buffs that regan (which i know the ai use on each other) or maybe make a custom heal gun (you could set it to ai target friendlies and then have the gun be an emitter weapon with a negative damage), you could try just modding the arccaster to remove the push, lightning, and jump and then set the damage value to a negative. those are two alternatives that make the ai heal each other.
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Re: Getting the engineer to heal other ai

Post by naruto2693 »

Dakota wrote:
1FGR1NightGhost wrote:Funny, the AI units used in my mods give themselves fakehealth. Its so sad but almost funny watch :lol:
yes, its real funny all the way to the point they run up to you and give you a good taste...


I just got an idea. do you have to use the regular powerups? you could use either buffs that regan (which i know the ai use on each other) or maybe make a custom heal gun (you could set it to ai target friendlies and then have the gun be an emitter weapon with a negative damage), you could try just modding the arccaster to remove the push, lightning, and jump and then set the damage value to a negative. those are two alternatives that make the ai heal each other.
I'll try it :)
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Getting the engineer to heal other ai

Post by THEWULFMAN »

Dakota wrote:then set the damage value to a negative.


When you set something to negative, like this -1 it means infinite, so setting the damage value to anything negative it will just kill anything instantly.
User avatar
1FGR1NightGhost
Don't feed the troll (that's me)
Posts: 85
Joined: Wed Jun 08, 2011 12:01 pm
Projects :: Bornesia Kastarian Docks
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Getting the engineer to heal other ai

Post by 1FGR1NightGhost »

THEWULFMAN wrote:
Dakota wrote:then set the damage value to a negative.


When you set something to negative, like this -1 it means infinite, so setting the damage value to anything negative it will just kill anything instantly.
Thats funny, cus during beta testing, there were 2 levels of fakehealth (wound or kill) (now poison or kill)

The value of wound was -100, so it would take away half the units life (more or less)

The value of kill is like 2000, so it kills everyone (except when the "juggernaught" cheat is on)
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Getting the engineer to heal other ai

Post by THEWULFMAN »

1FGR1NightGhost wrote: Thats funny, cus during beta testing, there were 2 levels of fakehealth (wound or kill) (now poison or kill)

The value of wound was -100, so it would take away half the units life (more or less)

The value of kill is like 2000, so it kills everyone (except when the "juggernaught" cheat is on)
What are you talking about? Fakehealth? Juggernaut cheat? :runaway:

Are you using Fake Console? I am afraid I dont understand.
Last edited by THEWULFMAN on Wed Jul 13, 2011 2:43 pm, edited 1 time in total.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

THEWULFMAN wrote:
Dakota wrote:then set the damage value to a negative.


When you set something to negative, like this -1 it means infinite, so setting the damage value to anything negative it will just kill anything instantly.

i thought it was different with emitters like certain force moves, buffs, and arccasters.


EDIT: oh look wulf posted while i was typing...


anyway hes talking of a mod he made and released with his friends. the fake health is a health pack that gives a negative value for the health regan causing death or health decrease. Juggernaut mode isn't really a cheat. its just giving a certain unit or team extra high health and everyone goes against that one unit.
User avatar
1FGR1NightGhost
Don't feed the troll (that's me)
Posts: 85
Joined: Wed Jun 08, 2011 12:01 pm
Projects :: Bornesia Kastarian Docks
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Getting the engineer to heal other ai

Post by 1FGR1NightGhost »

THEWULFMAN wrote:
1FGR1NightGhost wrote: Thats funny, cus during beta testing, there were 2 levels of fakehealth (wound or kill) (now poison or kill)

The value of wound was -100, so it would take away half the units life (more or less)

The value of kill is like 2000, so it kills everyone (except when the "juggernaught" cheat is on)
What are you talking about? Fakehealth? Juggernaut cheat? :runaway:

Are you using Fake Console? I am afraid I dont understand.

Fakehealth is a weapon, like health and ammo, but kills you instead (used on our mods by rebels/cis units)

Juggernaut cheat is Code Console on FC. You set a units health to like 4,000 and everyone tries to kill you....
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Re: Getting the engineer to heal other ai

Post by naruto2693 »

Burr... still doesn't work, I am going to try the fusioncutter and try and set it to aitargetperson and targetfriendly
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

naruto2693 wrote:Burr... still doesn't work, I am going to try the fusioncutter and try and set it to aitargetperson and targetfriendly

which thing doesn't work, the regan, the arccaster, the powerups, or what?
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Re: Getting the engineer to heal other ai

Post by naruto2693 »

Dakota wrote:
naruto2693 wrote:Burr... still doesn't work, I am going to try the fusioncutter and try and set it to aitargetperson and targetfriendly

which thing doesn't work, the regan, the arccaster, the powerups, or what?
The regen works, but the arccaster doesn't heal the other ai, it only heals me, lol
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Getting the engineer to heal other ai

Post by Dakota »

naruto2693 wrote:
Dakota wrote:
naruto2693 wrote:Burr... still doesn't work, I am going to try the fusioncutter and try and set it to aitargetperson and targetfriendly

which thing doesn't work, the regan, the arccaster, the powerups, or what?
The regen works, but the arccaster doesn't heal the other ai, it only heals me, lol
so the arccaster does work...

this would be a perfect time to tell a certain person... TheWulfMan
Hidden/Spoiler:
Image
but i'm nicer than that.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Getting the engineer to heal other ai

Post by THEWULFMAN »

Dakota wrote:so the arccaster does work...
Yeah, thus lies my bad, see I was lazy and only skimmed parts of what had been said, I never saw the word "arccaster". An Arccaster uses the same kind of ord that buffs use, which are different. Buff ords can be given negative values and heal units, they however are the exception. Both in DT2 and my TCW mod there is a Bacta Gun that works like that.

Any other type of Ord or Exp when given a negative value gives infinite damage.

Dakota wrote:but i'm nicer than that.
Hidden/Spoiler:
Image
Post Reply