how to create a medic? Created 12 years ago2012-04-14 10:04:28 UTC by gian20 gian20

Created 12 years ago2012-04-14 10:04:28 UTC by gian20 gian20

Posted 12 years ago2012-04-14 10:04:28 UTC Post #305372
Hello, i am looking at the code in scientist and now i want to create a H.E.C.U. like Medic but I don't know that that will heal other AI's, please help me with that code, thanks
Posted 12 years ago2012-04-14 10:23:48 UTC Post #305373
I don't really know all that much about coding in C++ or the HL SDK, but I think you can get healing code from the scientist. Dunno how to get it to target NPCs as well.
Notewell NotewellGIASFELFEBREHBER
Posted 12 years ago2012-04-14 10:48:24 UTC Post #305374
you're right i don't know how to heal fellow NPC's
Posted 12 years ago2012-04-14 10:56:59 UTC Post #305375
There might be a list of valid targets or something in that code. I think I'll let the folks who know what they're doing help find that, however.
Notewell NotewellGIASFELFEBREHBER
Posted 12 years ago2012-04-14 11:14:00 UTC Post #305376
You need to be more specific about what you want. Are you going for that medic NPC in Opposing Force? Or a scientist that can heal other NPC's? What exactly is it you want?
Posted 12 years ago2012-04-14 15:20:01 UTC Post #305385
I don't know how much of the code is available to use, but Sven-Coop's scientists are able to heal friendly NPC's as well as reviving fallen comrades.
monster_urby monster_urbyGoldsourcerer
Posted 12 years ago2012-04-15 02:00:17 UTC Post #305401
well, i want to create a medic NPC just like in Opposing Force that can heal NPC's and Players
Posted 12 years ago2012-04-18 08:57:56 UTC Post #305482
Do not attempt this unless you are an experienced coder.

To create a combat Medic you would need to combine elements of
both the Barney combat code and the Scientist heal code. I can't
even begin to list the things you need to impliment a brand new
class like that.

Barney and Scientist entities are derived from the CTalkMonster
base class, all I can recommend is that you study the talkmonster.cpp,
barney.cpp and scientist.cpp SDK files long an hard until you
understand exactly how the AI works before you even try to attempt this.
Posted 12 years ago2012-04-18 11:01:24 UTC Post #305486
hey, spannerspammer, just curious, how good are you with the hl1 source code?
You must be logged in to post a response.