Author Topic: [Weapon] Satchel Charge / Remote detonated bomb  (Read 7190 times)

NOTE: This thread is outdated. Go here instead https://forum.blockland.us/index.php?topic=310966.0



Satchel Charge
Remote detonated explosive, packaged in a fashionable backpack

 



- Click to throw. Charge will be removed from your inventory upon throwing, and will be replaced with a detonator, assuming there isn't a detonator in your inventory already.
- Hold the detonator and click to detonate all your deployed charges. The detonator will be automatically removed from your inventory.

Commands:
/rebuildSatchel - Sets all preferences back to default values
/satchelChargeScale x - Sets the scale of the explosion to x. Set to 1 by default.
/satchelChargeInfUses x - Sets the infinite uses pref to a boolean value assigned by x. 1 = on and 0 = off. If you set this to 1, satchel charges will not be removed from the inventory when they are deployed. A detonator will be added to your inventory if there is space. You can have a maximum of 10 charges while this is set to true. Set to 0 by default.

These commands will remain persistent even after you close Blockland. If you want to override the sanity checks and destroy everything you can use $Pref::SatCharge_Scale and $Pref::SatCharge_InfUses.

Download:
Weapon_SatchelCharge

This is the last HL1 weapon that will be released on it's own. The next HL1 add-on I release will be a megathread with the rest of the weapons and probably updated versions of the current weapons. For now I'm gonna go study for my exams for real this time
« Last Edit: June 22, 2017, 05:29:58 AM by Rally »


im gonna have a blast with this

doesnt look like it does enough damage, but has an excellent blast impulsse range

It actually just recycles the tank shell because I'm lazy to conserve datablocks. I personally thought it was slightly OP

Satchel Charge
Remote detonated explosive, packaged in a fashionable backpack
it packs a punch

this is pretty well-made
im surprised this topic hasnt exploded with popularity yet

yea tho this is actually rly good i like how the detonator is a separate item u automatically get

It actually just recycles the tank shell because I'm lazy to conserve datablocks. I personally thought it was slightly OP
never mind then, it looked like it used the default RL explosion which barely does any damage

personally though i'd like to see it do more damage to vehicles but that involves packaging projectile::onexplode and that code is pretty complicated to recreate from scratch. you can probably ask around for a copy of the default code though if you agree with my thoughts



Just wanted to say i love the items you released so far.
They are useful even in things not Half Life related.
Super cool stuff man.

add a console pref for the max satchel charges you can place


Thanks for all the feedback guys

add a console pref for the max satchel charges you can place

I'll update this later but for now you can change line 158 in Weapon_SatchelCharge.cs to something like
Code: [Select]
while(%player.satchelChargeSet.getCount() > 999)Just don't set it to -1 or 0 or something stupid because it might cause an infinite loop and crash your game