Wayback Machine
JAN MAY Jun
Previous capture 5 Next capture
2004 2006 2007
16 captures
29 Jun 01 - 5 May 06
sparklines
Close Help

# menu
 
http://www.planethalflife.com/hlprogramming > tutorials > database 

news
 
current
 
submit

tutorials
 
database
  -
mp
  -
client
 
submit
 
search

forum
 
main

contact
 
email

Make a Medic
Created by [-FYD-]F!oppy



HalfLife's Code is BLUE
[-FYD-]F!oppy's Code is RED
[-FYD-]F!oppy's Commentary is GREEN

hi !
here i have made a toturial about a medic
you simply use your weapon with a "-" damage, so the attacker heals
the inflictor.


for a multiplayer-medic u must change the SkillData
in multiplay_gamerules.cpp:

void CHalfLifeMultiplay::RefreshSkillData( void )
{
// load all default values
CGameRules::RefreshSkillData();

// override some values for multiplay.

// suitcharger
gSkillData.suitchargerCapacity = 30;

// Crowbar whack
gSkillData.plrDmgCrowbar = -5; /* here is the "damage". if the medic hacks anybody he gives him 5 health-points */

blablabla

}

that is all, simple, isn''t it ???
comments, ideas, questions: fyd.floppy@web.de