HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

RollingBoulder (U3)

05-06-2006, 01:51 PM#1
Vexorian
Description:
Click image for larger version

Name:	RollingBoulder.jpg
Views:	1229
Size:	19.9 KB
ID:	5629Just an old spell where the hero creates a giant boulder thant then bounces when it hits cliffs, sinks on water or knocks enemies back.

Update Info:
#3
*Better use of Tables
*Radians instead of Degrees in most of geometry
*Got rid of Pow when possible
*Updated urls
*Cleaned some garbage code or (ghost code) from older versions
*Uses OnAbilityEffect
Attached Images
File type: jpgRollingBoulder.jpg (19.9 KB)
Attached Files
File type: w3xrollingboulder_u3.w3x (89.1 KB)
05-06-2006, 03:08 PM#2
Ragnarok X
A long time ago that you didn't put a resource. Good job Vex.
05-06-2006, 10:12 PM#3
PipeDream
Collapse JASS:
 //take that! python fans
Amusing
05-07-2006, 02:58 AM#4
elemental
such a good spell it would be fun if you uesed in a maze boulder ,rolling down ^^
05-07-2006, 06:40 AM#5
BertTheJasser
Collapse JASS:
function RollingBoulder_GuessBounce takes item p,real f, real x, real y returns real
 local integer i=128
 local real h= 1.4142136*i //SquareRoot(2)
 local real r
 local boolean b1
 local boolean b2
 local boolean b3
 local boolean b4
 local boolean b5
Why don't you use just one array instead of 5 single boolean vars?
One of the most realistic spells ever! (That sounds quite strange =) )

By the way, can you submit the "storm, earth and fire" - spellmap, too or at least PM how it works? Thx.
05-07-2006, 11:54 AM#6
Vexorian
Using an array would be less practical I think, check out the rest of the function and fine a way to make it work in a loop.
05-07-2006, 03:03 PM#7
BertTheJasser
Just a thought of sense and simplicity(?).
05-07-2006, 03:06 PM#8
Vexorian
well If I used an array it would 4*8129 bytes if I use 5 variables it would use 20 bytes
05-08-2006, 03:21 AM#9
Chuckle_Brother
Looks nice. There are a few small greviences(my spelling is probably off the wall wrong). anyway, sometimes the silly thing bounces off of shallow water or off of suddenly deep areas of water, which looks a little silly, big ol' boulder scared of a little water. I included a picture of my big scary rock running from the water.

Ah and sigh, your sig quote thing pwnt mine(mutters that he could have sworn it was 2001 not 2002 when WC3 was released)
Attached Images
File type: jpgBigBadRock.JPG (162.8 KB)
05-08-2006, 03:48 AM#10
Vexorian
It is a magical boulder so it can run away some times.

Well I would only blame the collision size of items that sometimes they could be blocked by water in some point but the point is not actually water err.
05-08-2006, 07:17 PM#11
BertTheJasser
I don't know anything about memoryusage... so thx.
07-20-2006, 02:48 AM#12
Karawasa
NIce spell, thx for uploading vexorian.
04-17-2007, 04:16 AM#13
moonliterhythm
an amazingly fun spell Vexorian -- something I intend to definitely use in my map.

I was playing around with the triggers though and I haven't figured out how to make the rock bounce when it hits a unit -- right now it only bounces if it hits an edge or hits a "structure"

I've been looking at it for a while, and I don't think I really understand all of your code -- I do know however that I have to modify your "BoulderMove" function in some way.
04-17-2007, 04:40 AM#14
Vexorian
you would have to change GetPathability to detect units as well, but this is acutally a little hard
04-17-2007, 04:57 AM#15
moonliterhythm
yeh i've been toying with your "ItemCheck" and trying to get it to return false when it sees a unit around itself, except for the unit itself -- am I on the right track?