I'm a complete noob when it comes to scripting XD
so i started trying to make a unit on the 13/12/2015 but failed repeatedly to be able to change anything in the scripting without crashing the game but so far with major help from people on webchat.freenode and tones of help from abcdefg30 I have modified the Grenadier to a high extent where it now is a terrorist with many issues...
by that i mean the following:
- the unit can not target other units only buildings and is deploy-able (deployable = good thing)
- the unit is very unbalanced
- the unit takes the place of the Grenadier rather than being itself (p.s i tried turning it into it's own unit but the game kept crashing)
I have been able to successfully turn the unit more and more into a terrorist but have had many issues (mainly with balancing) which i have no idea how to fix such as the above problems (including crashes... tones and tones of frustrating crashes XD)
so i've decided to post the unit/modification of the Grenadier online for all!
(mainly because I need help... tones and tones of it lol)
anyways to use this unit go into the folder: /openra/mods/ra/rules and use notepad++ or any thing compatible to go into the infantry script then replace the E2 or Grenadier script with the following:
E2:
Inherits: ^Soldier
Buildable:
Queue: Infantry
BuildAtProductionType: Soldier
BuildPaletteOrder: 20
Prerequisites: ~barr, ~techlevel.infonly
Valued:
Cost: 200
Tooltip:
Name: Terrorist
Description: suicide bomber.\n Strong vs Buildings, Infantry, vechicles\n Weak vs Aircraft
Health:
HP: 15
Mobile:
Speed: 100
Explodes:
Weapon: suicideB
EmptyWeapon: suicideB
-AutoTarget:
DemoTruck:
and then go into the folder: /openra/mods/ra/weapons and use notepad++ or any thing compatible to go into the explosions script then copy and paste the following at the bottom of the script:
suicideB:
ValidTargets: Ground, Water
Warhead@1Dam_impact: SpreadDamage
Spread: 1c0
Damage: 80
Falloff: 1000, 368, 135, 50, 18, 7, 0
ValidTargets: Ground, Water
Versus:
None: 40
Wood: 35
Light: 30
heavy: 25
Concrete: 40
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath
Warhead@2Res_impact: DestroyResource
Size: 1
Warhead@3Eff_impact: CreateEffect
Explosion: napalm
ImpactSound: kaboom1.aud
Warhead@4Dam_areanuke1: SpreadDamage
Spread: 2c0
Damage: 40
Falloff: 1000, 368, 135, 50, 18, 7, 0
Delay: 5
ValidTargets: Ground, Water,
Versus:
None: 20
Wood: 15
Light: 10
heavy: 5
Concrete: 40
AffectsParent: true
DamageTypes: Prone50Percent, TriggerProne, FireDeath
Warhead@5Res_areanuke1: DestroyResource
Size: 2
Delay: 5
Warhead@6Eff_areanuke1: CreateEffect
ImpactSound: kaboom22.aud
Delay: 5
Warhead@8Res_areanuke2: DestroyResource
Size: 1
Delay: 5
Warhead@11Smu_areanuke3: LeaveSmudge
SmudgeType: Scorch
Size: 1
Delay: 5
p.s it wouldn't let me add .yaml files in the attachments
for those having trouble you can download the .rar files from the attachments and extract them, then place the scripts in their located folders (make sure to delete the already existing one) (just make sure to add .yaml at the end of the files when they are placed in)
unit in progress (terrorist)
unit in progress (terrorist)
- Attachments
-
- explosions.rar
- extract and place in: /openra/mods/ra/weapons
- (1009 Bytes) Downloaded 352 times
-
- infantry.rar
- extract and place in: /openra/mods/ra/rules
- (2.55 KiB) Downloaded 335 times