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 / Possible AI for turret?

Author
Message
FPS Game Creator
18
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 1st Jun 2006 06:05
Is it possible to make a turret that automatically shoots you? like an enemy, but is stationary, and shoots you and follows you? If so, how would i go about doing this? i am not good with scripting yet since i am new to it. If anyone could help me with this, that would be great.
MR useless
18
Years of Service
User Offline
Joined: 30th May 2006
Location:
Posted: 1st Jun 2006 06:12
reading throu another form i read some what of another persons etemp
you best bet is to make a careter that looks like a teret and then make it inmoble/ the fowlow script would make a make a good main script.
well i am now inspird to make a tert ill get bak to you if it works
jaba
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location:
Posted: 1st Jun 2006 07:58
I would think so, just make a model and treat it as an enemy and not an object when you make it fpsc ready, then make the ai system for it a stand and shoot one instead of moving one thats my guess

DID YOU KNOW ? THAT THE BINARY LANGUAGE 01000110010100000101001101000011011100100110010101100001011101000110111101110010 STANDS FOR FPSCREATOR ?

brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 1st Jun 2006 13:01
I believe this would be a descent turret script.



Tell me if it works correct.
FPS Game Creator
18
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 1st Jun 2006 22:52 Edited at: 1st Jun 2006 22:53
Wow, thanks. I will definitely try it. All i need to do is make turret. Shouldn't take long. I am starting to get the hang of this scripting.
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 2nd Jun 2006 01:05
So, if a turret is possible, why not a stationary weapon like an MG42?

AE

300 win mag
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: USA
Posted: 2nd Jun 2006 16:49
I tryed it on a turret I made and it works grate! It's beter than the script I made for a turret.

Remaking Soul Survivor because compture crashed
FPS Game Creator
18
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 2nd Jun 2006 17:01
<300 win mag> how did you make your turret? like how did you have a stationary base, and a moving top? that is the other problem i am having.
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 3rd Jun 2006 00:57
::floorlogic=1
:state=0,plrdistwithin=400:rotatetoplr,state=1
:state=1,plrcannotbeseen:rotatetoplr
:state=1,plrdistwithin=400,ifweapon=1,plrcanbeseen,plringunsight,rateoffire,rotatetoplr:useweapon,rundecal=6
:state=1,ifweapon=0:reloadweapon
:state=1,plrdistfurther=400:state=0

hate to pick, but have to ask...

Why the extra?

:state=0,plrdistwithin=400:state=1
:state=1,ifweapon=1:rotatetoplr,useweapon,rundecal=6
:state=1,ifweapon=0:reloadweapon
:state=1,plrdistfurther=400:state=0

If you leave in plrcanbeseen you don't need the plrdist's, nor do you need plringunsight if you have plrcanbeseen. The only issue is that PLRDISTWITHIN is about all axis'...

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 3rd Jun 2006 01:29
Lol, thats much unnessesary code. Thanks for correcting me.

Quote: "nor do you need plringunsight "


I have looked in the shootplr.fpi and noticed the plringunsight so i thought it should be used like that. How about rateoffire?
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 3rd Jun 2006 01:42
rateoffire just slows things down, personally... sure if the plr wants to have specifically fireing enemys, then use it, but...

And I am not certain why lee has plringunsight as well, technically I think that is an accuracy measure meaning if the plr is able to be fired upon then shoot him. But that is only speculation.

As I said, the main problem with what I presented is it will begin firing before it sees you... but I assume that you wouldn't put a turret in a little room. If you want it to fire only if it see's you then...

:plrdistwithin=400,plrcanbeseen:rotatetoplr,useweapon,rundecal=6
::reloadweapon

wow, even shorter.

but the point of taking out plrcanbeseen is if you are in a big room... heck it is a turret programmed to shoot at you, it shouldn't stop just because you are hiding behind a box... or actually, it should spray

:plrdistwithin=400,plrcanbeseen:rotatetoplr,useweapon,rundecal=6
:plrdistwithin=400,plrcannotbeseen,random=2:rotatey=-10,useweapon,rundecal=6
:plrdistwithin=400,plrcannotbeseen,random=2:rotatey=10,useweapon,rundecal=6
::reloadweapon

now... need edit button

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 3rd Jun 2006 01:43
Yeah... messed up, rotatetoplr should be with the reload, NOT in the plrcanbeseen line

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.

Login to post a reply

Server time is: 2024-11-22 15:22:41
Your offset time is: 2024-11-22 15:22:41