2 registered members (TipmyPip, AndrewAMD),
14,136
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Attach health pickup to AI???
[Re: jsaechao]
#202588
04/15/08 21:21
04/15/08 21:21
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink

Expert
|

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
it is not possible in A6, i always wanted to do that as well. there was an old code that was in the Aum for a5, and you could add it to one of the old AI script, but i could never get it to work for A6. look in the Aum's maybe you can fix it for A6, good luck.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: Attach health pickup to AI???
[Re: Blink]
#215062
07/09/08 02:28
07/09/08 02:28
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
Senior Member
|
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
Hey, i use A6 and i was wondering the same thing. But the only difference is, I found out how to do it. All i had to do (took me about 20 minutes to find it) was go into the War.wdl file and find the State_die() (i believe it is) and in it you have to look for a line that basically plays the Death animation. It took me a while to find this because it was worded akwardly. Any way, right before the death animation is played, i put this code: ent_create (health_pack, vector(my.x,my.y,my.z), medipac); This snippet of code creates the health pack right as the player is dying. The only problem i have with this code, is the health pack floats in mid air. I have absolutely no experience with the physics engine so i don't know how to make it fall properly.
|
|
|
Re: Attach health pickup to AI???
[Re: xbox]
#221759
08/16/08 04:37
08/16/08 04:37
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink

Expert
|

Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
how did you implement this?
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Re: Attach health pickup to AI???
[Re: Blink]
#236841
11/16/08 20:25
11/16/08 20:25
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
Senior Member
|
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
|
|
|
Re: Attach health pickup to AI???
[Re: xbox]
#236848
11/16/08 20:59
11/16/08 20:59
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
ent_create (health_pack, vector(my.x,my.y,my.z), medipac);
this creates healthpack at x,y,z coords of the enemy.
you can use a c_trace to trace ground and then you can creat on the ground.
3333333333
|
|
|
|