Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Respawning Bricks
« previous
next »
Print
Pages: [
1
]
Author
Topic: Respawning Bricks (Read 2460 times)
Aloshi
June 08, 2007, 03:59:26 PM
What is the method that weapons use for respawning bricks when they are destroyed in a minigame by a weapon? I need to figure this out for a mod I'm working on...currently it makes the brick count mess up and gets rid of the bricks effects. How does Badspot do it?
Ad Bot
Advertisement
Space Guy
June 09, 2007, 01:22:43 AM
Well, there seems to be these methods:
fxDTSbrickdata::ondeath(%this,[...unknown arguments]); -- Trigger for hammered/exploded?
fxDTSbrickdata::onfakedeath(%this,[...unknown arguments]); -- Perhaps minigame death?
fxDTSbrickdata::explode(%this); -- Explodes as if hit with wand.
fxDTSbrickdata::killBrick(%this); -- Appears to do the same as above.
Also, Badspot included servercmdBrickCount (as we use a lot of the time) and servercmdRealBrickCount. If you find the $variable for the onPlant/onDeath brick count then you could make it update every 10 or so seconds through the brick tree finding always the correct amount as I assume RealBrickCount does. (But laggier)
Aloshi
June 09, 2007, 02:41:43 PM
I've attempted most of those commands and spent a long while searching, and I've found a few things out...the current respawn system just makes the brick "invisible" and then uses setcollide(0);...just need a way to hide it.
MrPickle
June 09, 2007, 04:38:48 PM
Set the paint to invisible.
Aloshi
June 09, 2007, 05:20:04 PM
There is no invisible paint. Besides, the thing isnt a paint pack!
MrPickle
June 09, 2007, 05:26:10 PM
I know but you could make it change its paint to invisible until you want it to change back.
Aloshi
June 09, 2007, 05:32:33 PM
You can't change it's paint unless it's part of the server's painting options. Few people use packs with invisible paint anyways, and it's not always in the same section. Brick colors are set by Color ID, not the RGB-trans when your setting it from a script.
-=>RR<=-MasterCE
June 09, 2007, 06:26:42 PM
My server won't start up so I can check this, but if I remember correctly, bricks have something like (I can't remember the exact command)
Code:
[Select]
.setColor("# # # #");
Just do ObjectID(ofbrick).dump();, you should see a set color command you can use
Aloshi
June 09, 2007, 07:38:20 PM
I've done that MCE before, and as I said before, you must set it by a color in your paint set.
Ephialtes
June 10, 2007, 11:52:22 AM
Set it to paint id 69 or whatever, nonexistant colors in your set are invisible.
Aloshi
June 10, 2007, 12:30:12 PM
Thanks Ephi, I'll use that to work out a temporary system as it causes incorrect lightning (Ex. hides shadows, a few more things) and you can still hit the brick with a projectile..
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Respawning Bricks