• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Zues's spell model

Status
Not open for further replies.
Level 2
Joined
Sep 17, 2007
Messages
12
Whats the model for Thundergod's wrath and whatever the other one is called. The lightning coming from the sky.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
it isnt a model actually its a lightning effect like when you cast chain lightning but it comes from up so its something you can create with JASS or you may make a dummy unit with lightning attack ability but Jass suggested

JASS:
function thunder takes location pos returns nothing
local effect spec
local lightning light
local real x = GetLocationX(pos)
local real y = GetLocationY(pos)
set light = AddLightningEx("CLPB",true,x,y,1000,x,y,0)
set spec = AddSpecialEffect("Abilities\\Weapons\\Bolt\\BoltImpact.mdl",x,y)
call DestroyEffect(spec)
call TriggerSleepAction(0.1)
call DestroyLightning(light)
set light = null
set spec = null
endfunction
this is my thunder code simple to use and no leaks
you put this to map header
(<map name>.mdx in trigger editor)

and execute with
  • Custom Script: call thunder(GetSpellTargetLoc())
when you execute this with a spell it will create a thunder effect at the point you casted the spell
anyway change GetSpellTargetLoc() for changing location
try GetUnitLoc(GetSpellTargetUnit()) if GetSpellTargetLoc() doesnt work

Edit:
Ups forgot to tell +rep please :grin:
 
Last edited:
Level 7
Joined
Jun 10, 2007
Messages
225
I think you mean Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
The monsoon buff art.
Edit: A space is getting added in between .m and dl, so its .m dl, fix that when pasting.

@ O2; That work work:
1) instead of 2 lines, just say call DestroyEffect(AddSpecialEffect(...)), and you then dont need a variable.
2) TSA in a called function crashes the thread.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
No, I told you waits inside a timer callback cause a thread crash, way different...

Waits inside a called function just also stop the function that called that function that is calling them. (Obviously)

[jass=Proof]function PolledWait takes real duration returns nothing
local timer t
local real timeRemaining

if (duration > 0) then
set t = CreateTimer()
call TimerStart(t, duration, false, null)
loop
set timeRemaining = TimerGetRemaining(t)
exitwhen timeRemaining <= 0

// If we have a bit of time left, skip past 10% of the remaining
// duration instead of checking every interval, to minimize the
// polling on long waits.
if (timeRemaining > bj_POLLED_WAIT_SKIP_THRESHOLD) then
call TriggerSleepAction(0.1 * timeRemaining)
else
call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
endif
endloop
call DestroyTimer(t)
endif
endfunction[/code]
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
I think you mean Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl

Nope I didnt and did you ever see a moonsoon effect on a spell casted by zeus ?
nope
this is chain lightning effect


And this function works %100 perfectly I use it in my game also
BTW it doesnt matter for me that TAS doesnt detect less then 0.5 seconds or whatever it is


And is this a custom trigger sleep action function Purple ? I need something like that badly
 
Last edited:
Status
Not open for further replies.
Top