Questions regarding the creation of custom ambient scenarios
-
Hi,
Since several days I have been trying to create a custom ambient scenario using a modded helicopter with Codewalker ; unfortunately, I am encountering the following problem : as my modded helicopter use the frogger2 « vanilla » slot, it is not possible to create a scenario with this model.
To do so, & from what I understand, I need to edit the vehiclemodelsets.meta & scenarios.meta files, located in the update/update.rpf/common/data/ai section. Thus I added the following things :
Regarding vehiclemodelsets.meta :<Item type="CAmbientModelSet">
<Name>USFS_HELI</Name>
<Models>
<Item>
<Name>FROGGER2</Name>
<Variations type="CAmbientVehicleModelVariations">
<BodyColour1 value="91" />
<BodyColour2 value="30" />
<BodyColour3 value="111" />
<BodyColour4 value="111" />
<WindowTint value="-1" />
<ColourCombination value="-1" />
<Livery value="-1" />
<ModKit value="-1" />
<Mods />
<Extra1>Either</Extra1>
<Extra2>Either</Extra2>
<Extra3>Either</Extra3>
<Extra4>Either</Extra4>
<Extra5>Either</Extra5>
<Extra6>Either</Extra6>
<Extra7>Either</Extra7>
<Extra8>Either</Extra8>
<Extra9>Either</Extra9>
<Extra10>Either</Extra10>
</Variations>
<Probability value="1.000000" />
</Item>
</Models>
</Item>& regarding scenarios.meta :
<Item type="CScenarioVehicleInfo">
<Name>WORLD_VEHICLE_HELI_USFS</Name>
<PropName />
<Models ref="LIFEGUARD_MALE_HELI" />
<BlockedModels ref="NULL" />
<SpawnProbability value="1.000000" />
<SpawnInterval value="0" />
<SpawnHistoryRange value="150.000000" />
<MaxNoInRange value="0" />
<PropEndOfLifeTimeoutMS value="60000" />
<Range value="0.000000" />
<SpawnPropIntroDict />
<SpawnPropIntroAnim />
<StationaryReactHash>CODE_HUMAN_STAND_COWER</StationaryReactHash>
<SpawnPropOffset x="0.000000" y="0.000000" z="0.000000" />
<SpawnPropRotation x="0.000000" y="0.000000" z="0.000000" w="0.000000" />
<TimeTilPedLeaves value="0.000000" />
<ChanceOfRunningTowards value="0.000000" />
<Flags>ForceModel SpawnMalePedsOnly</Flags>
<Condition type="NULL" />
<ConditionalAnimsGroup>
<Name />
<ConditionalAnims />
</ConditionalAnimsGroup>
<CameraNameHash />
<IntroBlendInDuration value="0.500000" />
<OutroBlendInDuration value="0.500000" />
<OutroBlendOutDuration value="0.250000" />
<ImmediateExitBlendOutDuration value="0.500000" />
<PanicExitBlendInDuration value="0.125000" />
<PedCapusleOffset x="0.000000" y="0.000000" z="0.000000" />
<PedCapsuleRadiusOverride value="-1.000000" />
<ReassessGroundExitThreshold value="-1.000000" />
<FallExitThreshold value="-1.000000" />
<eLookAtImportance>HIGH</eLookAtImportance>
<ScenarioLayoutForPeds />
<ScenarioLayoutOrigin>kLayoutOriginVehicle</ScenarioLayoutOrigin>
<VehicleModelSet ref="USFS_HELI" />
<VehicleTrailerModelSet ref="NULL" />
<ProbabilityForDriver value="1.000000" />
<ProbabilityForPassengers value="1.000000" />
<ProbabilityForTrailer value="1.000000" />
<MaxNumPassengers value="1" />
<MinNumPassengers value="1" />
</Item>I basically took the heli_lifeguard sections, & modified them according to my needs ; nonetheless, those modifications do not seem to be enough to do what I wished : the aforementioned « WORLD_VEHICLE_HELI_USFS » & « USFS_HELI » do not appear when I try to fill the "type" & "model" categories in a new Codewalker scenario project.
Do I need to modify further files ? Or my whole thinking on how ambient scenarios are made is erroneous ?
Any help is welcome !N.B : I hope I have been clear enough, I apologize in advance if the comprehension of this post is somewhat difficult ; English is not my first language.