Some updates for 04rel004 have been incrementally coming in the last week, but I haven't yet documented them:
Sample fire hydrant XML:
[spoiler]
Sample carcols XML:
[spoiler]
- Files ending with _mem.nut or _mem.xml not saved to disk
- Added Script.CompileString() and include() (dofile only once)
- Ability to remove the whole default map by having store/maps/hidevicecity.txt file
- If present store/maps/waterpro.dat is used instead of the default one
- Support for object.dat definitions for custom objects
- Support for custom carcols (store/vehicles/carcols.xml), starting at 100
- Increased the limit of particle generators (nearly exhausted by default) from 70 to 250
- Custom tree (1), traffic light (2) or fire hydrant (4) models (<special value="#num"/>)
- LOD does not have to immediately follow the main object in XML anymore
- Player render distance increased (only Tommy was seen from far away previously)
- Fixed GUI 3D properties not usable because they start with a number (3DSize -> Size3D etc)
- Fixed custom chainsaw sound
- Fixed a crash related to custom object collisions
- Fixed a crash when custom vehicle parts were lying around on disconnect
- Fixed empty files in store crashing the client
- Checkpoint entry/exit works using vehicle/player collisions now instead of distance check
- Support for custom timecyc.dat (goes to store/maps/timecyc.dat)
Sample fire hydrant XML:
[spoiler]
Code Select
<object id="214">
<flags value="0"/>
<texture path="dynhydrent.txd"/>
<collision path="generic.col" name="fire_hydrant"/>
<model path="fire_hydrant.dff" distance="40.000000"/>
<special value="4"/>
<physics>
<mass>150.000000</mass>
<turnmass>50.000000</turnmass>
<airresistance>0.990000</airresistance>
<elasticity>0.030000</elasticity>
<percentsubmerged>50.000000</percentsubmerged>
<uprootlimit>100.000000</uprootlimit>
<damagemultiplier>1.000000</damagemultiplier>
<collisioneffect>1</collisioneffect>
<collisionresponse>0</collisionresponse>
<cameraavoids>false</cameraavoids>
</physics>
</object>
[/spoiler]Sample carcols XML:
[spoiler]
Code Select
<?xml version="1.0" encoding="ASCII"?>
<carcols>
<colour id="0" r="30" g="30" b="30"/>
<colour id="1" r="250" g="140" b="140"/>
</carcols>
[/spoiler]