ULX

Author Topic: ulx explode  (Read 28301 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
ulx explode
« on: April 03, 2008, 04:04:42 PM »
Introducing possibly the most fun command in ULX ever.

ulx explode. (!explode)

This makes use of a util.BlastDamage function I recently discovered.

!explode <player(s)> [damage] [radius]
The player(s) will literally explode and cause blast (splash) damage to all entities within the radius you define (defaults to 150 units)

This command is default to superadmin only, but like all ulx commands, can be assigned access in the groups.txt file, or in game with ulx userallow <player> "ulx explode"

Not only does it cause damage within the radius.. it also creates force, similar to dynamite (in fact, dynamite probably uses this function) so it'll send physics props flying through the air.. and player ragdolls too =)

have fun!

v2
Added Exploding Sounds
Scorch Decal
Gibs (bones, skulls, ribs)
Water Splash if you do it under water
Adjusts Kills/Deaths accordingly
Explosion Effect.

pretty much complete. Unless there is something anyone can think of that would make it better.


EDIT.. oh I almost forgot.. To install this, put it in your addons\ULX\lua\ulx\modules folder =)
Now in addon format =) Simply drop it in your addons folder. (note... you need ULX installed to use this.)
« Last Edit: April 05, 2008, 11:38:31 PM by MrPresident »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx explode
« Reply #1 on: April 03, 2008, 05:29:31 PM »
* JamminR cries in excitement at the wonderful idea.

I'm going to go check it out in SP now.

EDIT
Please make it into an addon format.
I believe those of us that use SVN, svn clients will either erase it when we update, or complain that the svn folder has newer files.
« Last Edit: April 03, 2008, 05:32:53 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #2 on: April 03, 2008, 05:57:10 PM »
Fixed that up! =)

Addon format, and shortened the help display in game. Thanks.

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
Re: ulx explode
« Reply #3 on: April 05, 2008, 08:02:30 PM »
Is there any way you can add some sort of effect to the explosion?  It's kinda boring if you can't even see the explosion happening.  If this is just a problem I'm having not being able to see one, sorry...

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #4 on: April 05, 2008, 08:24:02 PM »
Since I released it here, I've added gibs (when someone explodes it'll delete their corpse and spawn ribs, skull, and bones), added an explosion sound, and a blast decal under the person. I'm going to find a way to add a simple explosion effect to it too and then I'll release it here as a final version.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #5 on: April 05, 2008, 11:39:04 PM »
V2.

Added quite a few new things to it, such as effects and sounds.

Check the first post for a download and details.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx explode
« Reply #6 on: April 05, 2008, 11:40:53 PM »
EXCELLENT fun idea Mr.President.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #7 on: April 05, 2008, 11:49:04 PM »
Ya, and thanks Jam for helping me test it out and all the great ideas. =)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulx explode
« Reply #8 on: April 06, 2008, 09:33:41 AM »
You're welcome!
Oh, just noticed... your info file is the same from your 4/2 update. Version shows 1
Guess you could consider other versions more 'beta' :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #9 on: April 06, 2008, 12:03:58 PM »
[rhetoricalquestion]

ya, lol. What is an info.txt file anyways, except something you need to make it work as an addon. =)

[/rhetoricalquestion]

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
Re: ulx explode
« Reply #10 on: April 06, 2008, 06:50:08 PM »
Thanks for adding the effects...will upload to my server now for testing!

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
Re: ulx explode
« Reply #11 on: April 06, 2008, 11:20:30 PM »
Hey, so if you're still working on this, there's one little problem you could fix, which is that the scorch mark, explosion noise and explosion effect don't all work every time.  It seems that per explosion, only one or two works.  The gibs however work consistently.

If you don't feel like working on it more, it's no problem, everyone on my server loves it.  Except the victims.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx explode
« Reply #12 on: May 17, 2008, 09:56:23 AM »
Great job Mr. President! Found a bug though. If you explode someone in a vehicle they can't respawn.
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ulx explode
« Reply #13 on: May 17, 2008, 11:43:31 AM »
Never tried it in a vehicle. I guess I'll have to run a check or something.

How did you guys get around that with slay?

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given