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 / Military medic script?

Author
Message
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 18th Jun 2020 23:51
Hi. Im trying to make a military medic for my ww2 game, i want when the player are near or close the medic it heal you.
I have the main script of my soldier and other script of medic from model pack 4 when you are near he heals you, but he can move and combat enmeies, so
i need to join the 2 scripts, but i dont know how
please i need help
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 19th Jun 2020 00:57
@ Homegames Open the "medicheal.fpi" script. If you read over the script you will want to use the code from state=10 to state=3?
Which script are you using for your "soldier" ? Is your soldier following waypoints? Do you want him to heal the player when player
walks up to soldier? Do you want the player to "freeze" while being healed?
** WHERE'S MY eXplosys ? **
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 19th Jun 2020 21:37
hello i use the TF341 Script and the Dark Ai main script
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 6th Jul 2020 21:57 Edited at: 6th Jul 2020 22:00
@ Homegames You never did say what or which scripts your using? And how your using them
I have been checking everyday to see if you posted something to my question.
What scripts are you using and How are you using them? ( i.e. what does this character/npc do when scripts runs )
** WHERE'S MY eXplosys ? **
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 8th Jul 2020 21:28
ncmako, oh im sorry, the main script for the medic is from the model pack 4 characters, in my game i use Dari Ai scripts, tyhe main weapon script, and i want this for the allies, a military medic, i want that he follow the player (with dark ai) and when you are near he heal you, like Medal of Honor allied assault, wtach this gameplay in the minute
03:09
https://www.youtube.com/watch?v=C5f-VKEq0JA
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 8th Jul 2020 21:29
ncmako, seriously sorry for not being more specific with what I need
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 9th Jul 2020 11:54
@ Homegames No problem, I just want to be certain exactly what you needed. Yes, I know that npc character from model pack 4.
Should be doable, give me a couple days and see if I can get it to work?
** WHERE'S MY eXplosys ? **
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 9th Jul 2020 20:32
ncmako ok, you are awesome,i should give you credit in my game, i have a lot of scripts made by me but, nobody works fine
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 9th Jul 2020 23:56
@ Homegames As I thought it is doable. But some problems came up. If the character is just a medic that heals player and doesn't carry a weapon would make things easier.
Even a regular script will work, no Dark Ai needed? Will that work for you if Medic just heals player? Or, do you want to keep using Dark Ai? yes/no?
** WHERE'S MY eXplosys ? **
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 10th Jul 2020 19:39
ncmako ok, i think make it more easy, only a medic without weapon, only a regular script
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 18th Jul 2020 18:12 Edited at: 18th Jul 2020 18:14
@ Hoamegames Ok, after some good testing finally got a medic to work properly. Any stock npc character ( unarmed ) should work
No huds needed, uses text-huds only. Works perfect. Tested With and Without Dark AI, no problems.

Three keys "G" key calls medic and/or calls to follow player, "M" key calls medic to "heal" player ( even when in follow-player mode), "L" key "leaves" medic at point to wait for call.

Medic uses same stance as player. If player crouches, medic crouches, if player is standing, medic stands. Even when following player in combat.

Shot damage, 'medic" runs/returns to safety when shot/damaged. Place one triggerzone ( no script needed ) named "safety" and medic runs to zone.
Place it where a safe space for medic would be in your level.
Any bugs let me know
** WHERE'S MY eXplosys ? **

Attachments

Login to view attachments
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 18th Jul 2020 20:32
@ncmako thanks, really its amazing, just i was needed
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 18th Jul 2020 21:06 Edited at: 18th Jul 2020 22:47
@Homegames Any bugs let me know asap, sense the script is still fresh in my head
You probably already know, but.... I forgot to mention the medic.fpi is the medics Main_Ai script
** WHERE'S MY eXplosys ? **
Homegamesindie
7
Years of Service
User Offline
Joined: 28th Jul 2017
Location:
Posted: 19th Jul 2020 20:42
ncmako yes i know that this is the main Script, it works nice
sman512
9
Years of Service
User Offline
Joined: 28th Nov 2014
Location: Russia
Posted: 21st Jul 2020 12:36 Edited at: 21st Jul 2020 12:36
Medkit on legs
GS

Login to post a reply

Server time is: 2024-11-21 10:03:06
Your offset time is: 2024-11-21 10:03:06