Post by Zlixine on Sept 22, 2015 20:17:36 GMT
Hi this is a working 100% example of how to make medic code.
NOTE:Because mouse.sha is missing the crucial frames in RA2/YR, the "heal" cursor in RA2/YR actually looks like a "No" cursor. But that is purely graphical, clicking infantry with this cursor still causes the Medic to heal that infantry. You can give it a proper healing cursor by editing the mouse.sha. However, this will also change the cursor used by the Carryall's "Tote" cursor definition, and maybe others, as they all reference the same frame of mouse.sha. So if you also have Carryalls, try to invent a cursor frame that would match both functions. :Reference :millenium my partener of mod:
besure to have a valid medic shp "asset:
NOTE:Because mouse.sha is missing the crucial frames in RA2/YR, the "heal" cursor in RA2/YR actually looks like a "No" cursor. But that is purely graphical, clicking infantry with this cursor still causes the Medic to heal that infantry. You can give it a proper healing cursor by editing the mouse.sha. However, this will also change the cursor used by the Carryall's "Tote" cursor definition, and maybe others, as they all reference the same frame of mouse.sha. So if you also have Carryalls, try to invent a cursor frame that would match both functions. :Reference :millenium my partener of mod:
Rulesmd:
[InfantryTypes]
xxx=medic
;The Allied Medic
[MEDIC]
UIName=NOSTR:Allied Medic ;I am using ares if you aren't please check Tutorials about how
Name=allied Medic
Category=Soldier
Primary=Heal
Secondary=VirtualScanner
Prerequisite=GAPILE
CrushSound=InfantrySquish
Strength=125
Pip=red
Armor=none
TechLevel=4
Sight=6
Speed=4
Owner=British,French,Germans,Americans,Alliance
AllowedToStartInMultiplayer=no
Cost=600
Soylent=300
Points=5
VoiceSelect=CivAllSelect
VoiceMove=CivAllMove
VoiceAttack=CivAllAttackCommand
VoiceFeedback=CivAllFear
DieSound=CivAllDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
ThreatPosed=0
SpecialThreatValue=1
GuardRange=8
SelfHealing=yes
ImmuneToRadiation=no
ImmuneToPsionics=no
PreventAttackMove=yes
Bombable=yes
Trainable=no
Size=1
AllowedToStartInMultiplayer=no
IFVMode=0
AttackFriendlies=yes ; when scanning for targets, won't differentiate between allied or not, and also doesn't need control pressed to get attack cursor on friends
AttackCursorOnFriendlies=yes
Artmd:
[MEDIC] ; Allied MEDIC
Cameo=GRAPHICSICON ;Replace it with the icon you want
Sequence=GRAPHICSSEQ ;replace it with the shp sequence
Crawls=yes
Remapable=yes
FireUp=2
besure to have a valid medic shp "asset: