Bogden
04-17-2012, 01:52 PM
Hey everyone, I'm trying to make a mod which shows an arrow indicating the direction that a hero is currently facing. I attempted to do this with a groundsprite, but unfortunately it doesn't rotate with respect to the hero's facing direction. The position of the sprite moves correctly, but I don't know how I might be able to get the angle of it to change. Is it possible to do with groundsprites? If not, can anyone suggest another method of accomplishing a similar goal?
I'm not very good at modding, so right now I've just stolen some stuff from other mods, and really don't have a great deal of understanding with regards to what is actually going on. Any advice/tips would be greatly appreciated! Thanks in advance!
Here is the passiveeffect I added to moraxus' first ability, stomp, so it only shows once that ability is skilled:
<?xml version="1.0" encoding="UTF-8"?><effect name="" deferred="true" useentityeffectscale="true">
<definitions>
<particlesystem name="system0" space="world" scale="1">
<groundsprite
life="1000"
loop="true"
material="/shared/materials/range_circle/shade/arrow.material"
alpha="1"
startcolor="1 0 0"
midcolor="0 1 1"
endcolor="0 0 1"
midcolorpos=".5"
startheight="100"
midheight="100"
endheight="100"
midheightpos=".5"
width="100"
position="0 300 0"
minangle="0"
maxangle="0"
angles="0 0 0"
yawspeed="0"
/>
</particlesystem>
</definitions>
<thread>
<spawnparticlesystem instance="instance0" particlesystem="system0" />
<waitfordeath instance="instance0" />
<!-- <die /> -->
</thread>
</effect>
http://i.imgur.com/tWz5d.jpg (http://imgur.com/tWz5d)
(http://imgur.com/xff29)http://i.imgur.com/xff29.jpg (http://imgur.com/xff29)
I'm not very good at modding, so right now I've just stolen some stuff from other mods, and really don't have a great deal of understanding with regards to what is actually going on. Any advice/tips would be greatly appreciated! Thanks in advance!
Here is the passiveeffect I added to moraxus' first ability, stomp, so it only shows once that ability is skilled:
<?xml version="1.0" encoding="UTF-8"?><effect name="" deferred="true" useentityeffectscale="true">
<definitions>
<particlesystem name="system0" space="world" scale="1">
<groundsprite
life="1000"
loop="true"
material="/shared/materials/range_circle/shade/arrow.material"
alpha="1"
startcolor="1 0 0"
midcolor="0 1 1"
endcolor="0 0 1"
midcolorpos=".5"
startheight="100"
midheight="100"
endheight="100"
midheightpos=".5"
width="100"
position="0 300 0"
minangle="0"
maxangle="0"
angles="0 0 0"
yawspeed="0"
/>
</particlesystem>
</definitions>
<thread>
<spawnparticlesystem instance="instance0" particlesystem="system0" />
<waitfordeath instance="instance0" />
<!-- <die /> -->
</thread>
</effect>
http://i.imgur.com/tWz5d.jpg (http://imgur.com/tWz5d)
(http://imgur.com/xff29)http://i.imgur.com/xff29.jpg (http://imgur.com/xff29)