It is currently Mon Oct 19, 2009 5:30 pm |
All times are UTC - 6 hours [ DST ] |
Getting Started Getting Started Prepping Your Files |
Testing Methods Auto-Start Map True Testing Enviroment |
How to Add Nitrous (right click)This will inject some nitrus into the feeble engine of your favorite vehicle when you right click as the driver. All of the code below just needs to be added at the end of your ObjectSpawnTemplates.con of the map you'd like this affect on. Find your favorite vehicle, and get it's complex bundle name (i.e., for the DPV, it's DPVComplex... if your unsure, check the OBJECTS.rfa, it's normally the 3rd object bundle defined under the vehicle of interest). Next, active the complex bundle and the rocket engine and add the following lines to both (for example)
actually, any engine would probably do that doesn't have setNetworkableInfo set on it. If it does, you can change it to the BRDM2 water engine (shown below). Making the above changes to the KatyushaRocket_Engine will also break it (the KatyushaRocket will probably now explode as soon as it's fired).
ObjectTemplate.setAutomaticReset 1 - Makes it so the engine only activates while your holding down the mouse button In DC you have a veriety of rockets to play with to find what you need, depending on what you're willing to sacrafice:
The tomahawk and silkworm have a second engine that provides a 'coasting' thrust after the main engine shuts down. They'd probably give a more moderate boost to a vehicle and might not completely ruin the original weapon. If you want to sacrafice a plan engine, you need to change it's networkableinfo to the BRDM2 water engine. For example, to use the zero's engine (from cherry BF) for your DPV nitrous, u'd use the following code:
I do not know if this will work in DC-F yet... if they didn't fixe the BRDM2 water engine, then it should work. Fast vehicles usually take alot of damage when jumping hills. This can be remedied by setting the speedMod to a low number (or to 0). Just ObjectTemplate.Active the vehicle in question, and set it accordingly. For example, to set the speedMod to 0 on the lada, use the following code at the end of your ObjectSpawnTemplates.con:
|