General > Developers Corner

Admin sounds, tools and other code chat.

<< < (27/31) > >>

Megiddo:
Does it matter? If you code it right it will function the same either way. ;)

jay209015:

--- Quote ---Does it matter? If you code it right it will function the same either way. Wink
--- End quote ---

I don't understand, is there a way to see if the adv_dupe is actually pasting? So that you could spam even with the gun out. Right now if you use the adv_dupe, you can spam until you change guns.

JamminR:

--- Quote from: jay209015 on May 26, 2008, 07:46:09 PM ---
I don't understand, is there a way to see if the adv_dupe is actually pasting? So that you could spam even with the gun out. Right now if you use the adv_dupe, you can spam until you change guns.

--- End quote ---

I'm betting you could look over adv_dupe code and find out how Tad2020 monitors. He's set up something that draws a status bar client side that finishes at 100% once the 'dupe' is done spawning.
Though probably a usermessage, perhaps you could do similiar or find something useful.

Perhaps find out a way to monitor/queue the amount spawned within a certain time too. I think adv_dupe has some configs to set up time/etc.

Anyone (Meg,spbogie,kyzer,Mr.Pres, any other experienced coders), can a single usermessage be listened for twice?
That is, if adv_dupe sends a usermessage status of some sort, one of which is a 'adv_dupe_finished_spawn' ... could another script listen for that same usermessage without breaking the other?

Megiddo:
http://code.garrysmod.com/?show=garrysmod/lua/includes/modules/usermessage.lua

Nope, can only hook once.

An Error Has Occurred!

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

[0] Board index

Go to full version