Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / AI shoot at AI

Author
Message
Red Raven Media
18
Years of Service
User Offline
Joined: 18th Jul 2006
Location: My pocket
Posted: 19th Jul 2006 02:29
I need a script to make some AI make blankly shoot at some target or something, so maybe have one thug shooting at atleast 1 zombie, any one have any ideas?
Wrycu
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location:
Posted: 19th Jul 2006 03:54
Make both AIs not movable, set them in a line and make one shoot while facing the other. thats the only thing i can think of.. many people are trying to do this and none have done it, so far as i know.

3.0GHz Pentium 4HT, 512MB RAM, NVidia 5200 128MB PCI

<--Wrycu-->
HandK
18
Years of Service
User Offline
Joined: 24th Jun 2006
Location:
Posted: 19th Jul 2006 04:01 Edited at: 19th Jul 2006 04:03
Yep I agree with Wrycu, this is going to be a timeing thing.
You could probably have them moveing, but would have to script when shoot, when die etc.

As far as I can tell, entities cannot find out where other entites are. I may be totaly wrong about this. (And I hope I am)

Im trying to teach our kid, concept programing, via FPSC, but after I made him watch me play of HL2 episode 1, he wants "Alex", to be helping the player on everylevel he makes.

I know there is a "Follow the Player script", and coupled with a "Know what Im shooting at script", you could probably do it free form.

H&K
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 19th Jul 2006 08:04
Quote: "As far as I can tell, entities cannot find out where other entites are. I may be totaly wrong about this. (And I hope I am)"


man, revolation!

Of course enemys can not independently tell where other entitys are, BUT three enemys can pinpoint 1 enemy. The biggest issue will be the fact that you can only communicate to 1 exterior enemy. You could probally send over data to get them to move in unison or use waypoints...


As for the data, you basically do a couple

:anydistwithin=x:
till it returns true...

Now, if you can arrange the enemys to communicate propperly they can send the missing 2 cordinates to eachother and have a preset math routine run.

Of course this will not ensure a direct hit, but they will look like they are facing an enemy.


Of course this only works for 1 enemy. If there are multiple enemys the cordinate data will be incorrect. Somewhere between the two enemys.

Your Mod was deleted by the Government.
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 19th Jul 2006 13:39
If so you could have one ally. Like alyx.

Dont forget to visit my website for scripts!
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 19th Jul 2006 14:09
Merranvo,

Something along those lines I was working on a little while back - the main prob as you know is precise targeting.

As suggested one could possibly achieve a good simulation of one enemy shooting at another by precise control of their respective relative rotational positions whilst attaching at least one of them to a path, thus ensureing if placed correctly that they face directly towards each other when firing their weapon.

Of course this has very limited usees in specific tightly controlled scenarios.

A far cry (theres that term again) from real enemy or ally decision making but would fit the bill in a specialised situation. Of course even then one would need find a way of achieving health reduction from hits and the resultant one killing the other or a workaround trick to simulate such.

Worth all the effort perhaps, but I doubt it.

Truly there is not going to be a substitute for even a simple default method of character targeting involving some kind of group recognition that could be supplied by TGC or someone else in updating FPSC.

Lee without doubt is the best person to do this if anyone can and I am quite sure he could if he so desired.





"I am and forever will be your friend"
Red Raven Media
18
Years of Service
User Offline
Joined: 18th Jul 2006
Location: My pocket
Posted: 19th Jul 2006 17:24
What i basicly need is a script for a NPC to blankly shoot some where untill i enter the area and have him shoot me, or if anyone has any decals the looks like bullets going by that could help, but i just would need to figure out how to make the decal go away as soon as i came or something.
Wrycu
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location:
Posted: 19th Jul 2006 17:50
FPSC doesnt show bullets, nor does it really shoot them. It just puts bullethole decals where they are pointing, spread out according to the cone of accuracy. And.. it doesnt subtract health unless you tell it too.. so.. um.. just have him shoot..

:state=0:useweapon

?

3.0GHz Pentium 4HT, 512MB RAM, NVidia 5200 128MB PCI

<--Wrycu-->
Red Raven Media
18
Years of Service
User Offline
Joined: 18th Jul 2006
Location: My pocket
Posted: 19th Jul 2006 17:57
ok thanks, that's all i need

Login to post a reply

Server time is: 2024-11-22 19:31:31
Your offset time is: 2024-11-22 19:31:31