wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Spells
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 06-07-2006, 02:28 AM   #1
Vuen
User
 
Join Date: Mar 2003
Posts: 279

Submissions (5)

Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)

Spell making session 4 winner

Default Stone Wall (Spell Session 04)

This is the winner of Spell Session 04, themed "Terrain Manipulation".

Screenshots show the spell's thumbnail, default configuration on Lordaeron Summer, "Black Wall" configuration on Lordaeron Summer, default configuration on Icecrown Obelisk, and default configuration on Outland respectively.



Stone Wall 1.4

Conjures a wall of stone from the ground.


Features:
  • Contains level-based options for blocking air units, blocking visibility, and whether the spell is channeled.

  • The terrain is deformed progressively to update the shadowmap in realtime, and smooth out the deformation.

  • The wall is made up of randomly scattered peaks to create a very natural-looking terrain deformation.

  • The rock texture applied to the wall automatically matches the tileset used.

  • The terrain is returned properly even when walls overlap with other walls or terrain distortions.

  • Walls resolve properly even if the caster is abnormally removed.
Attached Images
File Type: jpg stonewallthumb.JPG (55.3 KB, 1397 views)
File Type: jpg stonewall13.jpg (177.6 KB, 813 views)
File Type: jpg stonewallblack.jpg (190.7 KB, 771 views)
File Type: jpg stonewallicecrown.jpg (237.1 KB, 748 views)
File Type: jpg stonewalloutland.jpg (205.9 KB, 728 views)
Attached Files
File Type: w3x Stone Wall 1.4.w3x (49.0 KB, 1103 views)

Last edited by Vuen : 06-10-2006 at 08:54 PM.
Vuen is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-07-2006, 01:15 PM   #2
erwtenpeller
*****istrator
 
erwtenpeller's Avatar


Art Director
 
Join Date: Nov 2003
Posts: 8,759

Submissions (35)

erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)erwtenpeller has a brilliant future (927)

Skinning Contest 7 ~ Were-AnimalsConcept art session 3 - Dungeon

Default

ace.
__________________
erwtenpeller is offline   Reply With Quote
Old 06-07-2006, 05:56 PM   #3
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

There are some things that could be fixed:
  • GetWorldBounds() creates a new rect everytime you call it. Therefore your spell has several leaks. Please fix this.
  • StartTimerBJ could be replaced with TimerStart.
  • The configuration functions could be made constant.

The last two does not really matter, but please fix the GetWorldBounds leak, and I will approve it.
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 06-10-2006, 08:56 PM   #4
Vuen
User
 
Join Date: Mar 2003
Posts: 279

Submissions (5)

Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)

Spell making session 4 winner

Default

Whoops. I didn't realize GetWorldBounds() created a new rect every time; I thought it just had one for the bounds and always returned the same one.

Fixed.

I set the rawcode configuration constant, but I left the others not constant because I like the configuration options to be able to depend on a lot of things, like elapsed game time for example. A lot of them also take the target location of the spell as a parameter.

Last edited by Vuen : 06-10-2006 at 08:57 PM.
Vuen is offline   Reply With Quote
Old 06-10-2006, 09:36 PM   #5
blu_da_noob
Nonchalant
 
blu_da_noob's Avatar


Respected User
 
Join Date: Mar 2006
Posts: 1,933

Submissions (2)

blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)

[Quicksilver #2] - 2nd Place[Quicksilver#1] 1st place

Send a message via MSN to blu_da_noob
Default

Constant functions can take parameters, they just can't call other functions.
__________________
blu_da_noob is offline   Reply With Quote
Old 06-11-2006, 05:29 AM   #6
Vuen
User
 
Join Date: Mar 2003
Posts: 279

Submissions (5)

Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)Vuen will become famous soon enough (64)

Spell making session 4 winner

Default

Yes of course but if you make the function depend on something like elapsed game time, having the function constant breaks it.

More importantly though, if you're taking a location as a parameter, then the location is different every time so having the function constant is really just slowing it down and leaking memory as it caches every parameter you call it with. Worse, if the game recycles a location, it will return the old value even though the new location points to somewhere else on the map.

Things that actually are constant, like rawcodes, I made constant, but I left open the rest. I also left the gamecache because if the player forgets it's making a cache and creates their own via GUI/BJ, it would return null if the function was made constant. This way it returns the player's new cache.
Vuen is offline   Reply With Quote
Old 06-11-2006, 06:38 PM   #7
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

Well, if the user will edit the functions himself, it should be an easy task to remove the 'constant' prefix.

Anyways, thanks for fixing the GetWorldBounds problem, approved :).
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 06-17-2008, 06:21 PM   #8
Mr.Malte
User
 
Mr.Malte's Avatar
 
Join Date: Apr 2008
Posts: 286

Submissions (2)

Mr.Malte is on a distinguished road (11)

Default

Wow nice spell.
But for some reason it laggs extremely when the wall rises and if it falls. Does anybody know why, and how to fix it?
Mr.Malte is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 02:56 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services