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 / [LOCKED] Ally Script Revive

Author
Message
kanom
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location:
Posted: 22nd Jun 2008 03:53
hey one question just to be sure the name of the enemy or well the Target of the ally is in the FPE file of the entity and is the one in the description part im submiting a screenshot to show you if thats the name

hey just one new noob in the forums!!!

Attachments

Login to view attachments
i need help
17
Years of Service
User Offline
Joined: 20th Nov 2006
Location:
Posted: 22nd Jun 2008 15:59
do the allies use the script you put in the shoot section because if they do couldn't you use strafe as a script and then it would look better
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 23rd Jun 2008 00:16 Edited at: 23rd Jun 2008 00:22
@kanom
It is not in the FPE file and I never said it was.
Download my pics that I made, and you will see what is needed to be for the script to work properly. (fyi the pics are on the first page towards the bottom)

@i need help
No the Shoot field dose not effect the ally script in anyway.

I apologize for any confusion within this thread.



Right now I am working on V4 of the ally script plus I will be making variations for the ally script such as a sniper ally, melee ally, etc...

If anyone has any suggestions for new ally features please post here on this thread.

Thank you

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
i need help
17
Years of Service
User Offline
Joined: 20th Nov 2006
Location:
Posted: 24th Jun 2008 22:44
melee ally is a great idea but will it be using the melee script from one of the updates or will it be able to use melee weapons like the ones on the fpsc store by errant AI
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 25th Jun 2008 03:03
The melee ally would be just like the normal ally script except he would go into close range to fight.

In OTHERWORDS it would be a combination of the ally script and melee script in one.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
actionlad 45
15
Years of Service
User Offline
Joined: 28th Jun 2008
Location:
Posted: 1st Jul 2008 00:33
When Will v4 of the ally script be available?
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 2nd Jul 2008 04:23
V4 of the Ally script's release date is pending.

I have been working out some bugs and doing away with some restictions.

Just be patient after all my time has been limited lately.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
MadChicken Games
15
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 11th Jul 2008 23:23
OMG it works this is the coolist thing ever and more realism you have to repeat the same button to make redo the action well done round of applause
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 12th Jul 2008 02:23
Version 4 released

This will be the finale version of the ally script until I get some other scripts I am working on done.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
MadChicken Games
15
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 19th Jul 2008 17:20
Were can we get V4 then
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Jul 2008 18:04
V4 download is on the first post.

Gamer X

Breaking down the barriers to bring in the light to scatter the darkness.
Pie Lighter
15
Years of Service
User Offline
Joined: 16th Aug 2008
Location:
Posted: 16th Aug 2008 21:26
when I press z the ally just stands there and shoots. he doesn't aim or anything. i changed the script so that it will fire at the enemy (Nazi) exactly as you said in the readme, GamerX. this is Version 4. can you please tell me what's wrong?

Me, myself and I team likes pie.

Attachments

Login to view attachments
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 17th Aug 2008 01:00 Edited at: 4th Sep 2008 20:24
Version 5 released

@ Pie Lighter

Welcome to the FPSC community

I suggest that you download V5 and check out the pics that come with it to help set up the script.


EDIT
download link is in first post at the bottom where it says go here
or just click my sig.


Diablos Bud
15
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 17th Aug 2008 03:35
Does this system work with multi-player, because that would be cool? Using a money system choosing allies for money, if wanted, assisting in your frags.

Diablosbud Productions - a name for the game's developed by me.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 17th Aug 2008 03:41 Edited at: 4th Sep 2008 20:24
@ Diablos Bud

Man you talk alot about MP

No this script is made for single player games only because I got tired of people asking for the ally script when it did not exist. Sooo... I made the script as my first script to released and it took awhile to get the info to all new creators.


Diablos Bud
15
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 17th Aug 2008 05:13 Edited at: 17th Aug 2008 05:13
I talk about MP alot because the game I am currently making is MP only, and requires a lot of scripting . Also good job on the script it is great!

Diablosbud Productions - a name for the game's developed by me.
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 17th Aug 2008 21:12
Can't believe that I only found thie now. Great work.

Minimovies Inc
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Reeedwwwaaallll!!!
Posted: 18th Aug 2008 00:52
It works very well, except for a few things:

You cannot stop the ally from walking forward.
You cannot stop the ally from shooting enemies.
The ally shoots at targets even when not visible (through walls, etc).
The ally should play an animation whilst moving sideward (strafe anim.)
Is there a command to make the ally stop doing what he's doing and follow you again?
And, the ally picks a random enemy target, no matter how far away. For example, he will start shooting a target a mile away instead of the one right next to him.

Otherwise, it's very good.

A starting Games Designer. Need levels, characters and anything drawn and designed? Let me know...
Hybrid
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 18th Aug 2008 00:55
Every script has its bugs, hence the version updates.

Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 18th Aug 2008 01:30 Edited at: 4th Sep 2008 20:24
@Hybrid
Yes this script been around for awhile now... It was my first script that I posted.

@Minimovies Inc

I am not sure way he does that but i will try and fix it.
The "B" key makes him stop what he is doing and turn around and retreat.
I will work on the animations.
He does not pick up random targets he simple shoots the targets in the order that you put them in the level.(bad bug no way around it yet)
You should be glad that you are not using V1 of the script.(the script came a long ways)

This script is mod free and always will be in case you think I should have a mod to make it.


Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 19th Aug 2008 04:37 Edited at: 4th Sep 2008 20:25
Just to check and make sure.

Is there anything that is not list here that you guys would like to see put in the ally script.

1.ally having better targeting and shooting(can not really be helped without more scripting codes added)
2.more bugs worked out


Jedi portug
User Banned
Posted: 20th Aug 2008 16:03
thanks Gamer X you're great! keep up the great work!

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 21st Aug 2008 04:39 Edited at: 4th Sep 2008 20:25
I figured that I will keep all of you people informed upon the ally script Version 6

Here is the progress made so far...

Fixed the shooting and targeting aspect of the ally (with the exception of the ally keep on shooting at nothing forever).
Gave the ally the ability to strafe from side to side.


Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 26th Aug 2008 04:09
I love this scipt. Excellent work on it so far. I guess the only thing it need's now is those bug's ironed out =) Which your working on already =)

Tal
help need driving humvee
15
Years of Service
User Offline
Joined: 25th Aug 2008
Location:
Posted: 29th Aug 2008 05:46
I got an idear for V6. I think you should make a script to have a enemy choose to shot your guy or your ally that is my idear

A.D
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 29th Aug 2008 23:34 Edited at: 4th Sep 2008 20:25
Noted.

I will try and get that worked out, but may take awhile.


Thoben
15
Years of Service
User Offline
Joined: 4th Aug 2008
Location: Munich, Ger
Posted: 31st Aug 2008 16:15
Hey Gamer X,

Excellent work on those ally scripts. I'm from the german forum and I've been working on ally scripts for quite a long time now. But my ally isn't human

Here is what I got so far:

---> Click here for demo video <---
322Gunna
15
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 1st Sep 2008 00:31
They just unload at the wall 0_0
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 1st Sep 2008 07:42 Edited at: 4th Sep 2008 20:23
big news all

I have given the enemy the ability to choose its targets, but with one or two bugs.

1. I have not got him to follow waypoints yet
2. he shoots you if he sees you and he shoots your ally if you are not seen.

expect it to come with ally pack v6!

BTW he has two script a main script and a shoot script.


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Sep 2008 08:03
What about if neither of you are seen? Does he try to shoot your ally through the wall?

I hope not.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 1st Sep 2008 08:05 Edited at: 4th Sep 2008 20:23
very good question.

he only fires when he sees you or he is fired upon.

when he does see you he switches between you and your ally.

*EDIT*
added a new addition to the ally: If the ally is engaged in combat then walk in front of him and he will disengage.


Aaagreen
16
Years of Service
User Offline
Joined: 4th Sep 2007
Location: City 17
Posted: 1st Sep 2008 13:33
From the sound of it this is probably a very nice addon. I will add it to my library if needed, thanks.

The Simon Cowell of TGC.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 1st Sep 2008 18:23 Edited at: 4th Sep 2008 20:23
Here is a link to a video that shows the enemy's reaction between you and your ally.

http://files.filefront.com/ally+plr+vs+enemywmv/;11668297;/fileinfo.html

*edit*
Despite what it looks like. the enemy does follow waypoints until it sees the player.


Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 1st Sep 2008 21:38
Version 6 release. *FIRST POST*


Minimovies Inc
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location: Reeedwwwaaallll!!!
Posted: 1st Sep 2008 22:09
SECOND POST

I can be the first, outside of Gamer X, to try this out! YAY!
By the way, you're doing great work here!

A starting Games Designer. Need levels, characters and anything drawn and designed? Let me know...
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 1st Sep 2008 23:53
@Minimovies Inc
Thanks

Unless there is some really bad glitches in this, It should be the final script. I just feel that I have done all I could do for now.


Jedi portug
User Banned
Posted: 2nd Sep 2008 11:47
thanks a LOT man! you're great, thanks for posting this!

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Jedi portug
User Banned
Posted: 3rd Sep 2008 18:00
Gamer X I'm having problems with this I set the vision cone o 1 so its deadly acurate (on my allies) set the name to Ally script to Ally_V6
the enemy's name to AI and the script to enemy (the enemy script wich comes with the ally script) then I play and my allies only crouch and do nothing.
Am I doing something wrong?

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Jedi portug
User Banned
Posted: 3rd Sep 2008 18:04
and Gamer X could you or anyone else tell me what to change in the script so that the ally simply follows me and stops to shoot whatever enemys come in the way and a single button for it to come back?

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 4th Sep 2008 03:55
1. Have V6 of the ally script of course.
2. download these pics (download button)
3. make sure everything is setup like that.
4. Take two of these and talk to me later

i will get back to you on the script editing.


Attachments

Login to view attachments
Jedi portug
User Banned
Posted: 4th Sep 2008 11:37
thanks GamerX (....I did took those..)

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Jedi portug
User Banned
Posted: 4th Sep 2008 12:08
well I've done as you said but still it does not work the ally just crouches when I press "Z" for him to attack and doesn't fire a shot.

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 4th Sep 2008 20:22
How to set up your ally and enemy tutorial (no modified versions of the scripts)

By: Gamer X

1.Get Ally V6
2.Put the items in the corresponding folders
3.Start up FPSC and make a level with 1 ally and 1 enemy

Setting up your ally:
1.Right click on your ally
2.Change the name to “ally”
3.In the main field place the Ally V6.fpi script
4.Click accept changes
5.Ally done

Setting up your enemy:
1.Right click on your enemy
2.Change the name to “AI”
3.In the main field place the enemy_main.fpi script
4.In the shoot field place the enemy_shoot.fpi script
5.Click accept changes
6.Enemy done

Extra Info:
The view cone no longer matters
If you are looking to change the controls, they are located at the top of the script.

To change the way he reacts to enemies:
1.There is no way to make him shoot the enemy if he sees him.
2.If he is shot by an enemy, he automatically attacks


Jedi portug
User Banned
Posted: 5th Sep 2008 14:42
thanks for the help GamerX, you've done a great work man but it may be my fault or my pc's fault but it does not work very well for me (hey at least I've got allies!) they crouch and don't point the gun to the enemy while firing...wich is freaky but they shoot him.
thanks

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 5th Sep 2008 20:50
one more thing:

What version of FPSC are you running?


Jedi portug
User Banned
Posted: 6th Sep 2008 18:34
the normal with uprgrade to v.109

nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOb!
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 14th Sep 2008 06:59
Ok now!

I know I am not making any more ally script updates until there are some sufficient commands are added.

Which brings me to my next point.
A medic Script.

The medic follows you and heals you when your are hurt.
THE KEY COMMANDS

B - has the medic turn around, move back and crouch and stay out
of the way of fire.
C - has the medic crouch and stay until you call upon them.
H - Has the medic go toward you location.
M - has the medic heal you. The medic takes time to heal you but
heals you in increments of 10.
J - has the medic jump, same as the ally.

I know that there are already medic scripts out there, but this one is mine and I hope you all enjoy it.


Attachments

Login to view attachments
Avid
16
Years of Service
User Offline
Joined: 24th Jun 2007
Location:
Posted: 14th Sep 2008 12:57
Looks very good, I would definitely say this is above the 'acceptable' level for AI in a game (acceptable means they move, stand still, fire at the enemy).

A nice addition would be to simulate cover usage, for example, when they hit a waypoint, they face the enemy and fire a few rounds, then duck and reload.
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 14th Sep 2008 21:02
You want him to crouch and reload. mmm...

How about this? find this part of the code in the script

change the code so it looks like this


Then ta-da you know have the ally crouch and reload instead of standing and reloading.


knapp16
15
Years of Service
User Offline
Joined: 14th Sep 2008
Location:
Posted: 17th Sep 2008 03:05
gamer x ive been workin on tryin to get it to work for a lil bit and i think i got just havnt tested it but i think u should remove the jump feature or at least make the distance farther away because when your too close and u have him jump he jumps really high and gets stuck in the ceiling javascript:insertSmiley('') also idk if this is still an issue but i believe u can change tha damage the ally does in the ally script. anyway thanks for the script works better then other ones ive used. P.S. when i use the retreat key its the same as move to my location

Login to post a reply

Server time is: 2024-04-25 18:34:38
Your offset time is: 2024-04-25 18:34:38