Addon Details

Watch - Add Favorite


1 out of 2 users claim this version works for them.
Does this version work for you?
8
w00ts
w00t!2

EntDissolver - Version 1

posted on 2010-11-12 23:48:36
by SuperDave



Description

Options:[syntax="es"]// EntDissolver release 1 options // ./addons/eventscripts/entdissolver/entdissolver.cfg // http://addons.eventscripts.com/addons/view/entdissolver // Load this addon with: es_load entdissolver // ***** Ragdoll options ***** // NOTE: The availability of dissolve types may be game-dependent // Number of seconds ragdolls remain on the map, 0 = never dissolve ragdolls entdissolver_ragdoll_delay 6 // Dissolve types to use: 0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core effect entdissolver_ragdoll_type "0123" // Magnitude of dissolve effect entdissolver_ragdoll_magnitude 3 // 1 = magnitude of effect is multiplied by player score, 0 = magnitude of effect is unchanging entdissolver_ragdoll_magnitude_score 1 // ***** Item options ***** // Number of seconds weapons remain on the map, 0 = never dissolve weapons entdissolver_item_delay 10 // Dissolve types to use: 0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core effect entdissolver_item_type "0123" // Magnitude of dissolve effect entdissolver_item_magnitude 3 // ***** Weapon options ***** // Number of seconds weapons remain on the map, 0 = never dissolve weapons entdissolver_weapon_delay 9 // Dissolve types to use: 0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core effect entdissolver_weapon_type "0123" // Magnitude of dissolve effect entdissolver_weapon_magnitude 3 // *** Weapon-specific options *** // Use the following server command to specify weapon-specific dissolve settings: // entdissolver_addspecial <name> <delay> [magnitude] ["dissolvetypes"] // See the bottom of these options for a list of acceptable weapon names. // Place your entdissolver_addspecial commands below: // Uncomment the following example options if you wish to use them: // entdissolver_addspecial awp 6 20 // Uncomment the above line to dissolve AWPs after six seconds with a magitude of 20 // entdissolver_addspecial m3 18 // Uncomment the above line to dissolve M3s after 18 seconds // entdissolver_addspecial tmp 15 3 "02" // Uncomment the above line to dissolve TMPs after 15 seconds with a magnitude of three and the dissolve type of zero or two // Weapon-specific dissolve settings can be removed with the following server command: // entdissolver_removespecial <name> // Due to the fact weapon-specific dissolve settings can be added or removed removed above, this command will not be used by most users. // *** Acceptable weapon names *** // These are the weapon names acceptable in the weapon-specific dissolve settings category above along with their more common in-game names. // This is just a reference--these are not options. // deagle - Night Hawk .50C // ak47 - CV-47 // scout - Schmidt Scout // aug - Bullpup // g3sg1 - D3/AU1 // galil - IDF Defender // famas - Clarion 5.56 // m4a1 - Maverick M4A1 Carbine // sg552 - Krieg 552 // sg550 - Krieg 550 Commando // m249 - M249 // awp - Magnum Sniper Rifle // tmp - Schmidt Machine Pistol // mp5navy - KM Sub-Machine Gun // glock - 9x19mm Sidearm // elite - .40 Dual Elites // m3 - Leone 12 Gauge Super // xm1014 - Leone YG1265 Auto Shotgun // usp - KM .45 Tactical // mac10 - Ingram MAC-10 // ump45 - KM UMP45 // p228 - 228 Compact // fiveseven - ES Five-Seven // p90 - ES C90 // hegrenade - HE Grenade // knife - Knife // ***** Command documentation ***** // This addon provides the following server commands while loaded: // entdissolver_dissolve <index> <dissolvetype> <magnitude> // - Dissolves an entity by index given a dissolve type and magnitude // index - Index of entity to dissolve // dissolvetype - Dissolve effect to use: 0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core effect // magnitude - Desired magnitude of dissolve effect // entdissolver_dissolve_delay <delay> <index> <dissolvetype> <magnitude> // - Dissolves an entity by index after a delay // delay - Number of seconds to wait before dissolving entity // index - Index of entity to dissolve // dissolvetype - Dissolve effect to use: 0 = Energy, 1 = Heavy electrical, 2 = Light electrical, 3 = Core effect // magnitude - Desired magnitude of dissolve effect[/syntax] Module functionality:[code] * EntDissolver makes the following functions available when imported: dissolve(target_index, dissolvetype, magnitude) - Dissolve an entity by index given a dissolve type and magnitude dissolveDelay(delay, target_index, dissolvetype, magnitude) - Dissolves an entity after a delay removeDelay(index) - Cancel the index delay and remove the index from our delay list cleanupAll() -Marks new idle ragdolls, weapons and items to be dissolved * To use EntDissolver functions in your addon, simply import it after it is loaded: entdissovler = es.import_addon('entdissolver') * You may then call the functions listed above: entdissolver.cleanupAll()[/code]

Version Notes For 1

Updated on: 2010-11-28 13:55:27 EST by SuperDave (View Zip Contents)
- Fixed two server commands not unregistered in unload

( Previous Versions )