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 / A Friend AL

Author
Message
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 2nd Jan 2008 16:54
I need to a friend Script that follow the player and kill enemies.
I have a script that just follow the player without kill enemies.
I need to it .. its very necessary ... Help me fast please my friends.
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 2nd Jan 2008 19:29
please read the stickies or search!

Sensei is a clue

chees hed
17
Years of Service
User Offline
Joined: 21st Oct 2007
Location: where you least exspect ( in my house )
Posted: 2nd Jan 2008 20:09
fpsfree.com has an allies script.

what doesn't kill me makes me stronger; but if something kills me, I'm not that strong am I?

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Jan 2008 22:29 Edited at: 2nd Jan 2008 22:31
3Dmajid,

Here you go:



This will get the job done nicely for you.

If you want your friend to be able to actually kill enemies, you'll need to arm him/her with a LAW Rocket, Bazooka, Glaive, or Grenades. Be sure to alter the SHOOT SCRIPT in PROPERTIES accordingly.

Enjoy!

Thanks,

Seth Black


Widow 13 - Coming Spring 2008
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Jan 2008 02:08
Brilliant, Seth!

I had not thought of forcing the ally to use explosive weapons! Nice thinking!


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
AlanC
18
Years of Service
User Offline
Joined: 28th Sep 2006
Location: Seattle, WA
Posted: 3rd Jan 2008 02:48
My name is AL and I'm frendly.

But umm, search the forums next time you have a question!

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 3rd Jan 2008 03:03
Seth, very nicely done again. Thanks.

Best.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Jan 2008 04:06 Edited at: 3rd Jan 2008 04:06
Quote: "...I had not thought of forcing the ally to use explosive weapons!..."


...it was a happy accident, actually. Works rather well. It does take a little bit of getting used to.

I discovered that I could have my ally trot up on my right side, and take a door out. Couple more shells, and he took out the baddies that were waiting for me in the room.

There is one small hitch...the ally will fire in sometimes a very unpredictable manner.
Kinda like real folks I've known.


Widow 13 - Coming Spring 2008
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 3rd Jan 2008 07:57
A world thanks.
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 3rd Jan 2008 08:41
Seth Black
Why doesn't work properly ?
I put a character and set this script in Main But Character only glues to player. Set the Script for Shot but Character was stoped.
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 3rd Jan 2008 11:09
I acnt get that script workin
Could you make it as a download instead?

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Jan 2008 11:21
...here you go, BIG Viking Games...


Widow 13 - Coming Spring 2008

Attachments

Login to view attachments
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 3rd Jan 2008 11:33
Thanks Seth Black!

This is off topic but Seth Black, I have a little suprise for the community (a model) and I want to use the Bot script, I will make some changes on it but am I able to include it in the download? I will not delete the names of those who helped with it.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Jan 2008 11:59
...as far as I'm concerned, sure.

All of the posts were up for everyone's benefit, and those that wanted the script, surely DLed a copy of it.

I can't wait to see your offering. I'm sure it will be a hit, whatever it may be.


Widow 13 - Coming Spring 2008
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 3rd Jan 2008 12:11
Thanks Seth! The "Suprise" will be free anyways

3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 3rd Jan 2008 20:53
The Script doesn't work properly ... The ally glues to player ... What am I to doing ?

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 3rd Jan 2008 22:18
3Dmajid,

I'm sorry, but I don't have any idea about what's going on with your character. Works like a charm on my machine, and I believe most of the others' as well.

Double check your steps, and make sure that you haven't altered anything within the script.

The ally shouldn't respond to the player, until the player gets within 60 units, will follow the player, and stopping at 75 units from the player. Unless the script's been altered, the ally will never get closer than 75 unit to the player.

If you're still having trouble, post your copy of the script here, and I'll see if I spot anything strange.

Thanks,

Seth Black


Widow 13 - Coming Spring 2008
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 4th Jan 2008 13:48 Edited at: 4th Jan 2008 15:48
Look at this image :



When player goes to near of friend ... the friend glues him and run and doesn't allow that player move.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 6th Jan 2008 10:45
Any body can't to help me ?

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 6th Jan 2008 11:36
as seth black said "I'm sorry, but I don't have any idea about what's going on with your character. Works like a charm on my machine, and I believe most of the others' as well."

and "Double check your steps, and make sure that you haven't altered anything within the script."

or else try changing the location where the allie entity will wpawn in the begining.

<-made by Nickydude
FPSC World
17
Years of Service
User Offline
Joined: 4th Nov 2007
Location: Never
Posted: 6th Jan 2008 12:50
thanks.it's good script.it worked.

FPS Creator is My World
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 6th Jan 2008 17:14 Edited at: 6th Jan 2008 17:17
Majer :
Thanks a lot for you'r help ... I changed the location and the friend didn't glue.But see this image :



Note : When I took the shot enemy rotated to back.

My friend is fool !
It can't to assess the enemy and shoot to around wall !!
its very comic and I just laughed when see this event.

May it is for my system ? (My RAM is 256 MB)

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Majer
16
Years of Service
User Offline
Joined: 23rd Dec 2007
Location: South Pole
Posted: 6th Jan 2008 17:16
Didnt understand the problem sorry ...

<-made by Nickydude
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 6th Jan 2008 17:48
Ahhh....

are you trying to make an ally script?

If yes, you can't without changing the Game Engine in Darkbasic Pro, they can't aim at each other otherwise.

Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 6th Jan 2008 19:04 Edited at: 6th Jan 2008 19:16
Quote: "...they can't aim at each other otherwise."


...you can set targets now, but unless an exploding weapon is used, it looks a wee bit silly.

You're right though, coffee grunt. Without an overhaul under the hood, true ally is not possible in FPSC x9.

@3Dmajid,

I'm sorry that you're having problems with the script. It looks like you're getting closer.

Quote: "Note : When I took the shot enemy rotated to back."


I'm guessing that entity was inadvertantly given the ally script. By design, enemies will face the player, and shoot.

Quote: "My friend is fool !
It can't to assess the enemy and shoot to around wall !!"


Unfortunately, your ally will face and fire in the same direction as the player is facing.

It takes some practice, but it is possible to get him to go & fire pretty much where you want him to.

For precise movement control, you'll need the Remote Control script that's been posted. Your ally will look more like a robot, than a human being, with that script.

Thanks,

Seth Black


Widow 13 - Coming Spring 2008
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 7th Jan 2008 04:58
Just so you are all aware. I have just done some testing with an allies test level I set up a long time ago. You can have allies in FPSC X9 now with the current version 1.07. They can and will kill your enemies. You do not have to use explosives or explosive weapons. It is relatively easy to do. You just have to know how.

I can not say how well the behaviour of allies could be with further resort to extensive script testing. Certainly it is easier to get them to kill any number of your enemies than it would be to give them other additional skills which would be vital for good AI ally behaviours. Getting the allies to kill your enemies is no problem. Getting them to work reasonably well in suppoting the player realistically is harder to do. I dont see allies in games as being player controlled in any way. Using keyboad controls as commands is just silly to my way of thinking and is an unprofessional looking half way house. AI characters both enemies and your allies should be self thinking and have their own in build decision making process. That is hard to achieve in FPSC.

I have no real incentive to test this further as I dont see the point in wasting resources of time.

I dont use FPSC now as the other issues which keep the fps and gameplay speeds unacceptable prevents me from developing with it. No doubt Allies which work as with me in an empty test level (just player, one friend and 3 enemies) would not do so in a complex level where the influences of the speed issues would cause your allies and enemies to go haywire. FPSC instability would kill the possibility of using them in a real gameplay scenarios with lots of enemies around.

Having said that I may look into it if I have spare time. If it proves to be as good as it seems it can be I may make a small video and post it at the forum.



"There are those who said this day would never come - What have they to say now?"
Gunn3r
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Portland, OR
Posted: 7th Jan 2008 05:01
That sounds awesome uman! You know that with posting that, you will have a lot of people asking how you did it... I am curious, but if it will take up lots of your time, then don't worry about it. Maybe you can post your idea and have the forum members try to figure it out.

[url=http://gunn3rgames.zxq.net]
[/url]
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 7th Jan 2008 05:51
...sharing the wealth would be helpful.


Widow 13 - Coming Spring 2008
uman
Retired Moderator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: UK
Posted: 7th Jan 2008 08:54 Edited at: 7th Jan 2008 08:55
I have built an outside level which is quite large and open. 5 enemies is about the most I can get in there plus the player and ally and the fps just about holds up at around 26 fps. Every enemy in an FPSC levels takes off a few fps so in a very complex level your start fps is too low already to be credible if you have a lot of enemies active and in battle with you and an ally at one time during gameplay thats not considering more than one ally would be good for a team on your side. Not much chance of that.

Still your ally will kill them quickly if you want him too so that boost the fps back up quickly too. Every one he kills boosts the fps back up a notch.

I have it working but will have to re-write the scripts to add capability to the ally and the enemies behavioiurs too as they too need improving. There are many problems to overcome with introducing allies. The killing is the easy part. Not sure when I will get time but as I find it an interesting challenge I will do more when I can. I will post a video if and when I am happy with the result. I wont post anything until its worth showing. It is not perfect yet and I am not happy to show anything I do until its reasonably acceptable. It is unlikely that one could perfect this but allies which kill your enemies Yes that can be done. Today I just wanted to build a level which was not empty but reasonably complex to test this out and thats OK so I will see if it can be improved. The ally killing the 5 enemies is no problem. I dont have to fire a shot off for him to kill them all. his weapon is just a basic colt pistol.

Not sure if its worth the effort as TGC may be giving you allies anyway but on the other hand maybe not.

3Dmajid,

Sorry to take over your thread. I should start a new one.



"There are those who said this day would never come - What have they to say now?"
3Dmajid
16
Years of Service
User Offline
Joined: 16th Dec 2007
Location: IRAN / TEHRAN
Posted: 7th Jan 2008 12:36
Quote: "FPSC Moderator"

A world thanks for you'r help.

The life is standby ... So decide for you'r target and then you'll see that you are arrived and get it.
Molten Ice
16
Years of Service
User Offline
Joined: 4th Jan 2008
Location:
Posted: 7th Jan 2008 17:20
@uman

Man, If I get a nicely done ally script i'll be in your debt, truly!!

Waiting to see your results!

Cheers!
Gunn3r
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Portland, OR
Posted: 8th Jan 2008 06:48
@uman, Sounds pretty promising, but if there are still bugs to work out, then releasing it, as you said, probably isn't the best idea. Otherwise, great idea, and I hope it works out for you.

[url=http://gunn3rgames.zxq.net]
[/url]

Login to post a reply

Server time is: 2024-11-27 21:45:58
Your offset time is: 2024-11-27 21:45:58