Whats needed for new weapon types? Research into cfs2's handeling of object dp files , Objects used for ordinance. Any object contained within library type .bgl files may be called by the payload section of an aircraft dp, so long as it has a dp file of the same name in the objectsdp folder. Cfs2 reads the [MISC_DATA] section to determine which type of weapon is being deployed and thus which effects are called. If the object is not a true weapon, ie, does not have "weapon_type=n" then the value is 0 and the object may be dropped and will hit the ground or water and do damage to infrastructure ect, but it will not explode or call any other effects contained in the object dp ie smoke or fire or what ever. the data seems to be "weapon_type=" 0 = non exploding object 1 to 4 = bomb 5 to 7= ground attack rocket 8= air to air rocket like cfs1's timed rockets 9 to 12 =torpedo 13 = non exploding object 14-15 -? =drop tank 20=non selectable ie rack , pylon , pilot
Try adding the line "weapon_type=8" to the [MISC_DATA] section of doveCot1.dp then adding "doveCot1" as a payload to your Hellcat or any plane that fires rockets. Ok well it was mildly amusing to fire that dove cot across the sky ,but if your asking youself what was the point of that ! Well , I was trying to establish how cfs2 is handling weapons , and having established the function of the "weapon_type=" line under [MISC_DATA] in the objects .dp file the question still remains... Where are the effects that go to make up a ground explosion i.e. "fx_gndexpl_l.fx" called from? And the answer is .... Im not sure , but if you look in the modules folder in the cfs2 directory you will notice ( if you have "show all files" selected in your folder options) a thing called "damage.dll" and it is this I believe that tells cfs2.exe what occures when a bomb hits the ground or a rocket is fired . So if we want to have working smoke bombs ,incendery bombs ,depth charges ,bouncing bombs or what ever, it is the "damage.dll" that needs updating. Editing .dll files is beyond my capabilities but Im sure some of wizards out there can do it.
IP Logged
|