ai health -1 reply

Please wait...

Pvt. Panzerknacker

I don't spend enough time here

50 XP

8th October 2004

0 Uploads

15 Posts

0 Threads

#1 16 years ago

does anybody know how i can make my allies invincible like foley is?:) because if i play Call of Duty they always go dead.




Pvt. Panzerknacker

I don't spend enough time here

50 XP

8th October 2004

0 Uploads

15 Posts

0 Threads

#2 16 years ago

I was looking in the pak4.pk3 files under maps and in all the maps (pathfinder and the others) There are allies like foley and moody and pavlov who have a magic bullet shield:) . with this shield they are invincible. I want to make all my allies invincible but therefor you must script in the maps. Can anyone explain what i must change there:rolleyes:




Sparks88

CoD All Around Guy

50 XP

21st October 2004

0 Uploads

28 Posts

0 Threads

#3 16 years ago

Well I don't know how much damage you want them to be able to take,but you can try this: Select the actor in Radiant, give it the entity value of "[color=green]targetname[/color]" "[color=green]invincible[/color]" and in your gsc put this in your main:

Ai = getent ("invincible","targetname"); Ai.health = 100000;

:bows: Of course you can change the health value to your liking :smokin:




Pvt. Panzerknacker

I don't spend enough time here

50 XP

8th October 2004

0 Uploads

15 Posts

0 Threads

#4 16 years ago

I don't have my own level, but i'm just changing stuff in singleplayer levels. And i don't get what you mean by actor:confused:




Sparks88

CoD All Around Guy

50 XP

21st October 2004

0 Uploads

28 Posts

0 Threads

#5 16 years ago

Actor = AI soldier Umm it's going to be hard to give all the allies invinciblity unless they all have the same entity value, what map are you editing so I can look in its GSC?




Pvt. Panzerknacker

I don't spend enough time here

50 XP

8th October 2004

0 Uploads

15 Posts

0 Threads

#6 16 years ago

on the map trainstation.




Sparks88

CoD All Around Guy

50 XP

21st October 2004

0 Uploads

28 Posts

0 Threads

#7 16 years ago

After looking at the GSC and playin the level, I think you should try puting this in your main, I'm not sure if "guys" in the GSC refers to the enemy or your allies, but I think it's the allies.:kerian:

Ai = getent ("guys","targetname"); Ai.health = 100000;



Pvt. Panzerknacker

I don't spend enough time here

50 XP

8th October 2004

0 Uploads

15 Posts

0 Threads

#8 16 years ago

They still getting killed:( . i put this in 2 places in the gsc file: Ai = getent ("guys","targetname"); Ai.health = 100000; the first one here: ai_guys(msg) { spawners = getentarray (msg, "targetname"); maps\_utility::array_levelthread(spawners,::ai_think); Ai = getent ("guys","targetname"); Ai.health = 100000; } and the second one here: [color=black]main() { maps\_load::main();[/color] [color=black]maps\trainstation_fx::main(); maps\trainstation_anim::main();[/color] [color=black]setCullFog(0, 7000, .47, .47, .48, 0);[/color] [color=black]level.ambient_track ["inside"] = "ambient_trainstation_int"; level.ambient_track ["outside"] = "ambient_trainstation_ext"; thread maps\_utility::set_ambient("inside"); Ai = getent ("guys","targetname"); Ai.health = 100000;[/color] i'm very confused on how this all works:confused: