• Print

Author Topic: ulx explode  (Read 44860 times)

0 Members and 1 Guest are viewing this topic.

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 #15 on: May 17, 2008, 12:36:07 pm »
How did you guys get around that with slay?

Megiddo, he still may want to go further than that and use our variable.

I forget the exact check, but we have a variable set if in a vehicle, being mauled, jailed, ragdolled, and a few other instances that will prevent other actions from being performed.
You probably wouldn't want explode performed on a ragdolled player either. Though, then again, that might be funny. I think we have the ragdoll dissapear if the player dies/kills themself.
I'm on the run, or would look up the code for you.

(totally off topic - On run because wife and I are going house shopping again. Pray we find one, or I'll never be motivated to do all the little tasks this one needs to get back on the market again)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx explode
« Reply #16 on: May 17, 2008, 12:48:48 pm »
ulx.getExclusive( target, initiator ):
Both args are players. Initiator is optional, used to generate "your are" if target == initiator. Returns a string you should print if exclusivity is set, nil otherwise. You should not continue the action if it returns a string (return from the function).

Example:
Code: Lua
  1. if ulx.getExclusive( v, ply ) then
  2.         ULib.tsay( ply, ulx.getExclusive( v, ply ), true )
  3.         return
  4. end


ulx.setExclusive( target, string ):
target is a player. String should describe the action that's taking exclusivity.

Example:
Code: Lua
  1. ulx.setExclusive( ply, "spectating" )

ulx.clearExclusive( target ):
Clears exclusiveness from a player.
Experiencing God's grace one day at a time.

Offline Ascendant

  • Newbie
  • *
  • Posts: 4
  • Karma: 5
  • Trying to Learn more lua.
Re: ulx explode
« Reply #17 on: June 05, 2008, 01:09:43 pm »
Regardless to how old this thread might be, I think there should be need of a "implode" command. One which splats the player and pulls objects like props and whatever towards where the person was. Now on the idea of pulling props maybe there should be a "magnetize" command which causes unwelded and unfrozen props to be attracted at high speeds towards the "victim" of said command, also preventing use of noclip while effected would be ideal, as would the removal of godmode on effected "victim". With this all said I will be more then happy to be "victim" to these commands when they are being tested, should I be online at the time.
Ascendant, Legendary God Admiral of the Eldarian Galactic Alliance


Quote
"Anyhow I think that I should be allowed to blow people up. I have been but a faithful supporter of ULX and besides I can solve all my problems by blowing people up. xP"

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ulx explode
« Reply #18 on: June 05, 2008, 02:27:04 pm »
Quote
Now on the idea of pulling props maybe there should be a "magnetize" command which causes unwelded and unfrozen props...

Actually, I think it should create gibs or temporary props that fly towards the player instead of pulling props currently on the map or near the person to avoid conflict with other peoples contraptions.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Ascendant

  • Newbie
  • *
  • Posts: 4
  • Karma: 5
  • Trying to Learn more lua.
Re: ulx explode
« Reply #19 on: June 15, 2008, 06:45:25 pm »
Hmm you have a point...how about props of people that are not connected(and not an admin) that haven't been deleted yet? I doubt anyone will care about those. 
Ascendant, Legendary God Admiral of the Eldarian Galactic Alliance


Quote
"Anyhow I think that I should be allowed to blow people up. I have been but a faithful supporter of ULX and besides I can solve all my problems by blowing people up. xP"

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 #20 on: June 15, 2008, 07:10:12 pm »
Bah, you two are just taking the fun and simplicity out of it.
Think Ulysses motto - Striving for Simplicity!

:D
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx explode
« Reply #21 on: June 15, 2008, 08:21:15 pm »
But he's not of Ulysses :P
Experiencing God's grace one day at a time.

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 #22 on: June 16, 2008, 10:53:20 am »
Heh, so? ulx explode.
Fun. Simple.

Not ulx explode_affect_only_certain_players_and_only_certain_props_only_if_certain_conditions_apply.
:P

He's got his custom game mode he's been working on for months (see his forum and Stranded server) for complexity. :D
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Jaybuz

  • Guest
Re: ulx explode
« Reply #23 on: August 03, 2008, 07:49:35 am »
Ermmm where the download link?  ???

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx explode
« Reply #24 on: August 03, 2008, 01:46:26 pm »
You must sign up for an account to see it.
Experiencing God's grace one day at a time.

Offline Jaybuz

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: ulx explode
« Reply #25 on: August 04, 2008, 09:29:50 am »
Ok I registered :P I don't know why I didn't in the first place?

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: ulx explode
« Reply #26 on: August 07, 2009, 07:01:22 pm »
Nice module by the way. It's a fun add-on for some extra lols once in awhile and not too overpowered that it effects all players. By the way, I've noticed that it doesn't seem to work when a player is in a shuttle. I assume that the vehicle tweaks that you've applied to your script doesn't also work for sents too.
« Last Edit: August 10, 2009, 12:43:29 pm by atomicspark »

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: ulx explode
« Reply #27 on: September 17, 2009, 05:08:24 pm »
Code: [Select]
ulx\modules/explode.lua:103: attempt to call method 'Frags' (a nil value)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx explode
« Reply #28 on: September 17, 2009, 05:50:48 pm »
Considering how many updates have been made to Gmod between when this was released and now, it's a minor miracle this works at all anymore, sparky.
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: ulx explode
« Reply #29 on: September 17, 2009, 06:43:16 pm »
I've actually seen a lot of add-ons producing nil value errors. Probably removed/changed functions.

  • Print