Drop Item On Damage Now On RTB!

Author Topic: Drop Item On Damage Now On RTB!  (Read 3760 times)

Drop Item On Damage
Version 3

Change Log:
V1 --> V2
-Fixed Creating Multiple "SwolHelp" messages upon server restart
-Made code better
-Min Damage for dropping an item is now about 3/5th of your max health
V2 --> V3
-Fixed Dedicated Server Deleting SwolHelp on host Exit
-Added SwolHelp Version support to avoid conflict in future
-Added 2 RtbPrefs/2 Server commands
-Made it a lot better

Description
When you receive more than X amount of damage in one blow there's a strong chance that the weapon your holding will be thrown out of your hand the more damage the projectile does the higher the chance that it will occur

The "Random Check" Occurs when you become damaged there's a higher percent chance to drop your item when you receive more damage you must be in the damage range of MinRand and MaxRand then theres a random chance of dropping your item if the damage Exceeds MaxRand you will instantly drop your item

MaxRand and Minrand are dependable on maxhealth as shown below
MaxRand = (maxhealth/100)MaxRand
MinRand = (maxhealth/100)MinRand


Server Commands/Rtb Prefs

Includes RtbPrefs
Enabled toggle if the mod is enabled/disabled
MinRand minimum amount of damage required for the random check
MaxRand maximum amount of damage required for the random check

If you do not have rtb server commands will be included instead

/DiodToggle to Enable/Disable drop item on damage
/DiodMinRand to set minimum amount of damage required for the random check
/DiodMaxRand to set maximum amount of damage required for the random check
Also from now on my addons will be including a command called
/SwolHelp which will give you a list of commands for any of my addons you happen to have*
*Any Addon that are created after this one that have Server Commands

STUFF
Now on RTB!


Click to view file in Return to Blockland download system
Size: 2.07 kb
Host: returntoblockland.com
Name: Script_DropItemOnDamage.zip
Direct Link
« Last Edit: January 24, 2012, 09:04:48 PM by swollow »

Nice work Swollow!

And smart thinking of having the server command only executed if the server does not have RTB.
« Last Edit: January 18, 2012, 08:43:56 PM by jes00 »

Nice work Swollow!

And smart thinking of having the server command only executed if the server does not have RTB.
My addons will be including them from now on along with /SwolHelp so that you don't have to memorize them all technically you can implement this into your own addons

My addons will be including them from now on along with /SwolHelp so that you don't have to memorize them all technically you can implement this into your own addons
Don't forget to parent it.

Don't forget to parent it.
why would you need to be parent it? it never pre-existed

Awesome I totally needed this!

I'm going to use it for my racing server! :D

Add an RTB pref with damage # before chance if possible

Also, could you set a health/damage ratio too? As in, if a player is at 10 health and gets hit by a bullet with 5 damage the ratio is 2:1 and therefore will cause a drop chance.

Add an RTB pref with damage # before chance if possible
Yes I think the next version is going to make the damage dependent on max health so it doesn't mess things up in servers like boss fight servers
Also, could you set a health/damage ratio too? As in, if a player is at 10 health and gets hit by a bullet with 5 damage the ratio is 2:1 and therefore will cause a drop chance.
I'll see what I can do

why would you need to be parent it? it never pre-existed
But it will exist when you make more add ons with /SwolHelp.

Yes! My idea became a reality!





 _________________
(_____ BUMP_______))

Now we sir,have a FANCY BUMP BUTTON 2000.             

But it will exist when you make more add ons with /SwolHelp.
the server command does't get changed look at the code, sorry i haven't been here to update anything because the power was out