Posted: Sun Apr 12, 2015 4:33 am Post subject:
Making Immobile infantry (for trees and whatever)
If you want to make a terrain object like a tree, and to have it use unit palettes (or custom palettes if you are able to do that)...
Here is the script for making infantry that act like trees (note they still take damage from bullets, won't catch on fire, and are still omnicrushable unless you tell it to be OmniCrushResistant, they might disappear under genetic mutator but they shouldn't become brutes.
note: there may still be some kinks in this.
Rules.ini
Code:
[Jtree001]
UIName=Name:Cherry
Name=Sakura Tree
Image=jtree1
Strength=400
Armor=wood
TechLevel=-1
Insignificant=yes
Sight=0
Speed=1 ;don't use speed=0 or you'll get lagged to death.
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,Special,Neutral
AllowedToStartInMultiplayer=no
Cost=0
Soylent=0 ;this and cost makes it so trees shouldn't give anything towards veteracy
Points=0
Nominal=yes
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1} ;if left blank you'll have a chrono tree! although prob irrelevant with immobility added.
PhysicalSize=1
ThreatPosed=0
ImmuneToPoison=yes ;human poizonz no workz on plantses
ImmuneToPsionics=yes ;TREE BRAINS!
ImmuneToPsionicWeapons=yes
ImmuneToRadiation=yes ;trees don't poof cuz rad levelz
ImmuneToVeins=yes ;all them veins that pop outa yuri's forhead
Size=1
NotHuman=yes ;please no flameguy
Crushable=no ;change if you want tanks to run it over, just remember to consider adding tree crush sounds
Disableable=no
Selectable=no ;why would you want to select it?
LegalTarget=no ;no target crosshair unless ctrl held
PixelSelectionBracketDelta=-9999 ;removes health bar
Trainable=no ;chevron trees would be funny though
TiberiumProof=yes ;just incase
SpeedType=FloatBeach ;necessary for immobility
Remember to give your object 8 duplicated frames in the shp, just handles hardcode stuff and makes it visible in final alert 2
(ps: there aren't pinks in unittem, but there are unused colours which are magenta, i filled them in and imported my own, for those curious about making flowery trees)
Infantry by default can be crushed and messes with vehile pathfinding. (Actual Trees aren't crushable and also do not interfere with pathfinding and can allow vehicles to pass through the cell without requiring it be destroyed.)
TBH this whole "workaround" seems kind of pointless though. And most people already know how to do something similar to this when they need to make Pseudo-Infantry for like Mines or units designed to take advantage of UnitType Logics while also using Animations. (I.E: A Signal Flare/Parabomb Infantry) _________________ ~ Excelsior ~ QUICK_EDIT
-shrugs-
you can make it uncrushable (i already did, minus omnicrush, imo would be cool for omnicrush to run over trees), and they move around it just fine.. i tested it a bunch moving units through them, didn't seem to effect pathing any different than a regular tree would. infantry move through it fine, just not through if 3 trees on one cell (dats dense forest)
this is doable without ares and it's straightforward, could be used in other ways. _________________ ????????MyAnimeList my Last.fm QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum