Jump to content
Mostabdel

car spawn full

Recommended Posts

how i can change this for have cars spawn full FUEL, OIL, BRAKE & COOLANT ?

override void OnFluidChanged( CarFluid fluid, float newValue, float oldValue )
	{
		switch ( fluid )
		{
			case CarFluid.FUEL:
				m_FuelAmmount = newValue;
				break;

			case CarFluid.OIL:
				m_OilAmmount = newValue;
				break;

			case CarFluid.BRAKE:
				m_BrakeAmmount = newValue;
				break;

			case CarFluid.COOLANT:
				m_CoolantAmmount = newValue;
				break;
		}
	}

help pls !!!

Share this post


Link to post
Share on other sites

you can set them to spawn in with all items on and fuel,water,oil in the inventor if that helps here is the code you need just place in your cfgspawnabletypes.xml where the <type name="OffroadHatchback"> type is

 

<type name="OffroadHatchback">
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackWheel" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="CarRadiator" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="CarBattery" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HeadlightH7" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HeadlightH7" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackDoors_Driver" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackDoors_CoDriver" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackHood" chance="1.00" />
        </attachments>
		<attachments chance="1.00">
			<item name="HatchbackTrunk" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="SparkPlug" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="CanisterGasoline" chance="1.00" />
		</attachments>
		
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="EngineOil" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
		<attachments chance="1.00">
			<item name="WaterBottle" chance="1.00" />
		</attachments>
	</type>

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×