Jump to content
Sign in to follow this  
ViV

Making an normal Unit to Medic?

Recommended Posts

Sup..

Is there a way to make for example a normal CZ rifleman able to act like a medic?

Because the CZ team does not have any medics or corpsemen..

- thank you ;)

Share this post


Link to post
Share on other sites

No, not without editing the configuration files or creating a new addon.

Share this post


Link to post
Share on other sites

However, you can give him an action via addAction to start a script. It becomes the "old style" of healing though, where you heal at medic instead of medic healing you, but probably good enough at least for singleplayer games. That script should make both units perform some kind of medic animation, and when done, health is restored.

Not ideal, but some kind of workaround for the missing classes.

Share this post


Link to post
Share on other sites

I was trying to do the same thing today. It's strange that I just stumbled on this.

I suck at scripting, but I thought their might be a way to do this. For my 8 man coop mission, I wanted to add into each player a script that would check to see if the players damage was greater than 0 and if so, to then add an action to the menu called something like "Bandage" or "Treat Wounds" that would run a script that would use a basic bandage animation and then return the player to 0.1 health, or some health level that at least allows the player to walk and run again. This should be possible. If there was a script on the shelf like this I would pay for it and bring it home and add it to all the missions I make.

Share this post


Link to post
Share on other sites

There are first aid scripts available. Check OFPEC.com, I'm sure you find something there.

Share this post


Link to post
Share on other sites

never mind. i scripted it myself. works awesome too. tested it with friends. no medic in the mission at all. if any of us get so much as a scratch, the option to "Use Med Kit" suddenly appears in our inventory. when the choice is made to use the Med Kit, the action suddenly vanishes from your actions menu, then a heal animation starts to play out - just like when you kneel and heal at a Med Tent. a few seconds later the animation stops and your back in the action. no more screaming and yelling for a medic, no more drag and carry, and no more worries about hitting a bush and getting hurt when your on an ATV or when you trip over a rock. best of all, no more being stuck crawling 200 meters to a Med Tent or MHQ. the script re-checks each players health and has unlimited usage. i can also add group chat messages that automatically announce the moment a teammate gets hit "I'm Hit!", "Using Med Kit" and "I'm healed". yeah, to most guys it's like a cheat, but the way I look at it... 90% of the time you get shot at - you die instantly, so the Med Kit just helps out for all the other times you get hurt, like from tripping over rocks, driving through bushes on your ATV, a rough chopper landing, when a Hummer hits a tree or a wall, and a zillion other buggy and klutzy reasons. lol.

and i suck at scripting, so this was a major breakthrough for me. lol. spent like 10 hours playing with commands from the command reference page. for the first 6 hours i made no progress at all and if anything i became even more dumb than when i first started. then it started to come together slowly. i couldn't find any script examples out there that helped at all. none. and this forum board search engine seriously needs an upgrade since none of my 10 thousand searches yielded anything helpful at all. i definitely didn't copy my script from anybody. one look at my script and you'd see right away that i basically rigged it together with some sticks and twine, but it works, and i fired the medic and now he's collecting unemployment. pfff, revive script, i don't think so. i've grown tired of risking my tail to go revive players that play stupid and get themselves incapacitated every 2 minutes. if anybody is interested, let me know. i'll hook you up with it. i'm going to get back to work on my mission now. i'll try and make time to zip up a sample mission of the Med Kit script, upload it to my server and then post it for download here or wherever. i'm sure there's another script just like it out there, but i don't really know since - i couldn't find one.

Edited by A-SUICIDAL

Share this post


Link to post
Share on other sites

Able to share with us other mate?

would be awesome :)

Share this post


Link to post
Share on other sites

Yeah I'd be interested in that. And you never know, if you release it to the gibbering masses here it might come back tidied up and shinier than ever :)

Share this post


Link to post
Share on other sites

Theres a command you can put in the init-line that I saw out there that'll let a soldier be a medic, but I can't remember. Hence why I'm hunting for it. When/If I find it, I'll link it here.

Share this post


Link to post
Share on other sites

Here's 2 sample missions using the Med Kit script that I put together with Kylania's help.

MenWithMedKits.zip

You can open in the mission editor and examine how it's set up. I also included 2 sample missions that you can test right away online which have unlimited respawn enabled. I added some vehicles so you can drive straight into a wall, get out hurt, then use your Med Kit to heal yourself, then blow yourself up with a frag grenade and respawn and drive into a wall again and use your Med Kit again.

The Med Kit work's much the same as Kylania's heal script but I made sure that the Med Kit could be used again after your respawn - for those missions where respawning is enabled.

I do not add any revive scripts, first aid modules, medics, field hospitals, ambulances etc in my missions.

Share this post


Link to post
Share on other sites

I thought what makes a medic was the kits they had, like the morphine, benozine, and those 4 little syringes or stuff gave them the healing ability.

Maybe that was an ACE thing maybe?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×