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 / SHG's Ally Script!!!

Author
Message
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 3rd Feb 2009 04:49 Edited at: 5th Feb 2009 02:51



its finally here after a month of work and sweat

this ally script has the ally folo the plr, shoot the enemy when the enemy is seen and when the enemy is dead folos the player again. and the best part about this ally script is the ally doesnt shoot through walls.

your also able to take any enemy main script and add two lines of code (specified in the script) and it will be compatible with the ally.

later on i was thinking about adding sound effects such as when the ally sees an enemy but thts up to you guys

(we are also offering custom scripting if anyone is interested contact me at screamingheadgames@yahoo.com)

Edit: srry i forgot to tell you the ally works best if u set his speed to 200 and his view range to 15-25.

plz leave comments

(\__/)
(O.o )
(> < ) This is your bunny on drugs.

Attachments

Login to view attachments
Exotic Matter
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location:
Posted: 3rd Feb 2009 14:25
Not working for me.
I gave the ally mainally3.fpi just stands there.
Gave the enemy fadecorpseenemy.fpi after you kill the
enemy they just stand there don`t fall or fade away.
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 3rd Feb 2009 15:27
did u change the ally's shoot script to allyshoot1?
did u change the enemy's main to strafe10enemy?
u also hve to change the enemy's name to enemy1

(\__/)
(O.o )
(> < ) This is your bunny on drugs.
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 3rd Feb 2009 15:35
Awesome. This makes three ally scripts to choose from!

Will definitely try when I get home.

Till Thy Migration Come...
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 3rd Feb 2009 15:41
do any of you want sound effects of the ally talking?

(\__/)
(O.o )
(> < ) This is your bunny on drugs.
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 3rd Feb 2009 17:52
I think that we should make our own sounds for our games. So I don't think so...

-but thats only me.

Till Thy Migration Come...
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 4th Feb 2009 22:58
so how many ppl hve tried the scripts yet?

(\__/)
(O.o )
(> < ) This is your bunny on drugs.
General Jackson
User Banned
Posted: 18th Feb 2009 23:01
ok. it doesnt work right. for instance i have a level where you come out of a trench into a prefab. i set up everything EXACTLY how you said, but when he sees the enemy, he doesnt even try to kill him. he rotates slighly left, and waits for me to kill him. after i kill him, he starts following again. i will try to modify the script a bit if you cant tell me anything.

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 18th Feb 2009 23:23
Hey there SHG, have you had chance to try out my COD5 style barrier script yet?

- Why is everyone on here so rude? -
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 19th Feb 2009 01:03 Edited at: 19th Feb 2009 01:16
@ shooter: i hvent come across this problem before ill try to look at the script and see whats wrong but it should be working since i hve aready tested it out a bunch of times.

@ x10 user: no im srry i hvent. ive been a little busy lately but ill try it out soon.

[edit]

is anyone hveing the same problem as The Shooter?

(\__/)
(O.o )
(> < ) This is your bunny on drugs.
Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 19th Feb 2009 02:59
The ally follows me, but doesn't attack the enemy. I did what you said, but it doesn't want to work. Also, you may want to change the strafe10enemy.fpi and add more variations. The enemy just stands there, trying to throw a grenade that he doesn't have at me...

Some people say that I'm crazy... And I agree.
USE PLY'S MOD!
Screaming Head Games
15
Years of Service
User Offline
Joined: 13th Dec 2008
Location: You dont want to know......
Posted: 19th Feb 2009 03:13
Quote: "Also, you may want to change the strafe10enemy.fpi and add more variations. The enemy just stands there, trying to throw a grenade that he doesn't have at me...
"



you can use any enemy script you want but you hve to add two lines of code i dont kno it from the top of my head but its in the readme

Quote: "The ally follows me, but doesn't attack the enemy."


ugh i hve to take a look at the script it should be working....

(\__/)
(O.o )
(> < ) This is your bunny on drugs.
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 19th Feb 2009 03:17 Edited at: 19th Feb 2009 03:18
i took a quick look. try this i haven't tested it




And i do see the reachtarget command which isn't the best to use

]

General Jackson
User Banned
Posted: 19th Feb 2009 21:07
okay it kinda works. the ally will shoot the enemy an kill him. but...my level where you come up from a trench into a prefab and theres an enemy in there, well if the ally sees the enemy before he comes up the stairs, he freezes and shoots a TAD bit, but not in the direction of the entity. when i kill entity the ally resumes following.
if he gets up the stairs before he sees the enemy, he'll kill it, unless it goes behind a corner. then i have to kill the enemy.
what this script needs is where if the enmy is out of sight of the ally, that he'll unfreeze, follow the plr, and then when hes sees the enemy he'll freeze and fire again.

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Crazy Acorn
15
Years of Service
User Offline
Joined: 16th Mar 2009
Location: Stalking people...
Posted: 2nd Apr 2009 05:08
what file do you save it in the script bank because when i try to run it, it sys runtime Error

OWN
Travis Gatlin
15
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 16th Jun 2009 01:02
it doesnt work i put it on somthing EXACTLY how u said it and it didnt work! he kept shooting me even though the enemy was standing
right beside him

the modern government tries to make time,into money that is why clock are not free! in theory time is actually money!
trentb95
15
Years of Service
User Offline
Joined: 18th May 2009
Location: AUS, VIC
Posted: 6th Aug 2009 12:32
the ally just stands there and the enemy doesnt shoot him. only me

Login to post a reply

Server time is: 2024-11-25 05:38:41
Your offset time is: 2024-11-25 05:38:41