![]() |
#1 | ||||||
I LIKE PIZZA! | >
|
![]()
Last edited by Malf : 11-29-2007 at 04:15 AM. |
||||||
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
User
Join Date: Apr 2007
Posts: 356
![]() |
![]() ive seen 2 black hole spells already, and tried to import in my map, but they affect structures which i dont want to affect, i tried configuring them but still affect the structures
__________________i hope this doesnt affect structures is this a system? |
![]() |
![]() |
![]() |
#3 |
I LIKE PIZZA! | >
|
![]() If you've configured them then it might be a problem with those spells.
__________________This is a normal spell, doesn't follow the JESP standard since I was too lazy to add the JESP manifest. The spell itself is 100% configurable though. Btw, I'm noypi as well =þ Last edited by Malf : 11-11-2007 at 12:03 PM. |
![]() |
![]() |
![]() |
#4 |
master of fugue
Join Date: Jun 2007
Posts: 2,453
![]() ![]() ![]() ![]() ![]() |
![]() Always post the spell code.
__________________ |
![]() |
![]() |
![]() |
#5 |
Evil Emoticon
Respected User
Project Leader: PoC |
![]() I've done a quick review, and this is what I've found:
Because this spell has been done, in theory I should graveyard this, so I need a good justification why it should be approved. |
![]() |
![]() |
![]() |
#6 | |
Alpha Male of Wc3c
Official Map Reviewer
|
![]() Because the spells are different.
__________________Blade's removes the units entirely and damages nearby ones. This one sucks enemies in and holds them there, then the black hole implodes, sending the ones sucked in flying and damaging other units. Quote:
|
|
![]() |
![]() |
![]() |
#7 |
master of fugue
Join Date: Jun 2007
Posts: 2,453
![]() ![]() ![]() ![]() ![]() |
![]() I will let him live for now.
__________________Mainly because he knows how to import ABC. (You would be surprised at the amount of people who copy whole ABC text on top of their trigger text, they think it is a macro or something!? ) He also used private actions and conditions, that is a big plus. He did not use local trigger: ![]() function InitTrig_Black_Hole takes nothing returns nothing set gg_trg_Black_Hole = CreateTrigger( ) call Preload(BlackHole_FX) call Preload(Explode_FX) call Preload("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl") call TriggerRegisterAnyUnitEventBJ( gg_trg_Black_Hole, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( gg_trg_Black_Hole, Condition( function Conditions ) ) call TriggerAddAction( gg_trg_Black_Hole, function Actions ) endfunction ![]() public function InitTrig takes nothing returns nothing local trigger trig = CreateTrigger() call Preload(BlackHole_FX) call Preload(Explode_FX) call Preload("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl") call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( trig, Condition( function Conditions ) ) call TriggerAddAction( trig, function Actions ) endfunction // InitTrig is public, remember that. The greatest remark is terrible indentation of the code. Learn to use tabs instead of spaces. (or use 4 spaces if your editor does not support tabs) ------ This is close to being JESP, he just needs some more work. EDIT: You should use this for a spell icon: ReplaceableTextures\CommandButtons\BTNGenericSpellImmunity.blp It is an active spell after all. Last edited by cohadar : 11-11-2007 at 03:49 PM. |
![]() |
![]() |
![]() |
#8 | |||
Evil Emoticon
Respected User
Project Leader: PoC |
![]() Quote:
Quote:
Quote:
Last edited by moyack : 11-11-2007 at 03:55 PM. |
|||
![]() |
![]() |
![]() |
#9 | |
master of fugue
Join Date: Jun 2007
Posts: 2,453
![]() ![]() ![]() ![]() ![]() |
![]() Quote:
(when you are naming it only InitTrig to avoid WE dependence.) |
|
![]() |
![]() |
![]() |
#10 |
I LIKE PIZZA! | >
|
![]() I didn't use a local trigger because:
__________________a. The global is created anyways b. Some people may want to disable triggers dynamically Oh and I know about Blade.dk's blackhole, I ripped off the model from his demo map =þ _________________________ You can determine which units are sucked in, it's just below some constant functions and is explicitly named Filter The InitTrig is called 'InitTrig_Blackhole' so I do not need to add a public/private prefix. My calculations are fine, d.expiration*SUCK_INTERVAL just determines the speed travelled per second in wc3 units(for example, 800 units per second) Which means I'd have to do something like this ![]() if d.expiration < d.distance then //d.distance == d.expiration*SUCK_INTERVAL set x = d.x + d.expiration * Cos(a*0.01745) //Uses a local var 'x' set y = d.y + d.expiration * Sin(a*0.01745) //and local var 'y' instead of d.x and d.y set d.expiration = d.expiration + SUCK_INTERVAL endif Oh and sorry cohadar, I forgot to say in the first post that I use ABC. Check first post for the new link for the newer version of the demo map. I've included some minor changes and added a filter for units who should be knocked back. Last edited by Malf : 11-12-2007 at 09:55 AM. |
![]() |
![]() |
![]() |
#11 |
User
Join Date: Apr 2007
Posts: 356
![]() |
![]() ok i tested the spell...it was cool but its lag
__________________ |
![]() |
![]() |
![]() |
#12 |
I LIKE PIZZA! | >
|
![]() It's not laggy, even on my computer. It just so happens that I've amassed trolls in the map so the units are the ones who are affecting your computer's lag issues.
__________________ |
![]() |
![]() |
![]() |
#13 |
User
Join Date: Apr 2007
Posts: 356
![]() |
![]() ah ok
__________________maybe ill use that in my map :D lol - moyack removed it :P Last edited by waaaks : 11-14-2007 at 03:51 AM. |
![]() |
![]() |
![]() |
#14 |
Doesn't come here often
|
![]() This would be sweeter if it had some levels.
|
![]() |
![]() |
![]() |
#15 |
I LIKE PIZZA! | >
|
![]() That's why I split some constant globals into constant functions. There you can just set a formula like 50+10*level
__________________It supports levels. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|