• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Grenade & Bouncy Grenade

  • Like
Reactions: TriggerHappy
Grenade- Throws a grenade a the target point... which will explode within a 200/250/300 radius damaging enemies ( allies and self if activated ).

Bouncy Grenade- Throws a grenade at the position in front of him , it will then bounce twice, loosing speed, height and range.. but eventually reaching the target .( If you didn't fire it up hill...)

Keywords:
Grenade , DrEvil , Range , Bouncy Grenade , Bounce ,
Contents

Grenade (Map)

Reviews
18:08, 4th Jun 2009 TriggerHappy: local location l = Location(0,0) would be better off as a global, that way you never have to destroy it and you can use it for all other locations too. Aside from that, coding was good.

Moderator

M

Moderator

18:08, 4th Jun 2009
TriggerHappy:

local location l = Location(0,0) would be better off as a global, that way you never have to destroy it and you can use it for all other locations too.

Aside from that, coding was good.
 
Level 15
Joined
Jan 31, 2007
Messages
502
Ive seen 1000 spell like this

-Improve Tooltip , the one you got sucks
-Your spell ignores any Terrain Height which results in strange movements if the terrain is not flat like your testmap
height.png

-I think making the flying height proportional to the range looks better
-Its hard to aim due the bomb always bounced 3 times, may change it to a timer like a norml grenade (explodes after x sec) or adjust the range the way that the 3rd bounde lands on the target point
-make your funktions like GetRange or GetHeight constant

else the code looks quite flawless, [8/10]
 
Level 3
Joined
Dec 21, 2008
Messages
26
I'l fix the terrain bouncing.

I'l add a timer instead or land at target area ... ( Which ever is easier :p )

>-make your funktions like GetRange or GetHeight constant
Why ? What is the difference ?

Awesomo-2000 is my friend :wink:

( How do I edit my original post to update the map and description? )
 
Level 2
Joined
Apr 20, 2009
Messages
23
i wanna put this in my map but when i go to export the stuff it doesnt let me

fuk this crap

when i try to change stuff it says soomthing to do with the script

:grin:
private constant function GetHeight teakes bla returns blub

its faster but cannot be added to functions which call other function

to update your spell just update it. in the top left corner over the name of your Spell (under your "User CP" button) there should be a Delete and Update option
 
Last edited by a moderator:
Level 2
Joined
Apr 20, 2009
Messages
23
ok can anyone help me i found out whats happening i cant import the triggers cause its script
 

EHH

EHH

Level 3
Joined
Jun 20, 2009
Messages
35
Geez. This is the only grenade that bounces and explodes.

Yet, people are acting as if they've seen thousands of these.
 
Level 3
Joined
Dec 21, 2008
Messages
26
OK guys... I found time to recode it...

So I made a plain - Point... Travel and explode grenade...

Then the bouncing Grenade which bounces X times still landing at the target point if on a straight terrain

Added terrain bouncing...
 
Last edited:
Level 3
Joined
Dec 21, 2008
Messages
26
Hmm how are other users supposed to download 'his grenade' spell then ?

...:grin:

EDIT : Changed that one 'local location l = Location(0,0)' to a global location which doesn't need removing or null'ing... :D
 
Level 6
Joined
Aug 14, 2016
Messages
174
How to add this spells in my maps, the MAP BLACK FOREST USING GUI + VJASS, HOW DID AUTHOR ADD IT????
upload_2018-5-23_17-0-37.png

upload_2018-5-23_17-0-48.png
...
upload_2018-5-23_17-0-59.png

When i save map
upload_2018-5-23_17-1-43.png

Good Game, Author.
 

Attachments

  • upload_2018-5-23_17-1-30.png
    upload_2018-5-23_17-1-30.png
    22.4 KB · Views: 34
Top