Jonaleth
Apprentice
Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0
|
Bolt Grenade
Hello!
I've tried to create AOE effects on some items, or abilities without success. I know that there are some real talented people here that hopefully are kind enough to help
I am trying to create a bomb/grenade that works similar to the pink explosion bottle BUT instead of just having that explosion effect, I want it to fire bolts/arrows on all nearby targets (lets say within a distance of 4).
So basicly, you dclick on this item, target a location, the item is then thrown at that location, and almost instantly will explode (perhaps a timer at 1 sec), and when it explodes it will fire arrows on all nearby targets dealing damage (about the same damage as a crossbow).
Is this possible to create?
|
|
05-27-2015 10:07 AM |
|
|
Jonaleth
Apprentice
Posts: 42
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0
|
RE: Bolt Grenade
Well, I guess I "kind of" figured it out.
I'll show you how I did, and perhaps you can make it look even better or just give feedback of how I could do it;
Code:
[itemdef i_witchhunter_grenade_bolt]
ID=i_virtstone_1
type=t_normal
weight=1
NAME=Bolt Grenade
ON=@DCLICK
TARGETG Where will you throw <name>?
return 1
ON=@TARGON_GROUND
serv.allclients sendpacket 0c0 00 D0 D0 Wi_virtstone_1 W<src.p.x> W<src.p.y> B<eval(<src.p.z>+15)> W<eval(<src.targp.x>)> W<eval(<src.targp.y>)> B<eval(<src.targp.z>+5)> B02 B32 00 00 00 B0 D0 D0
src.newitem i_grenade_bolt_timer
new.timer=1
new.p=<src.targp>
new.attr=010
new.link=<src.uid>
return 1
[itemdef i_grenade_bolt_timer]
id=i_virtstone_1
type=t_normal
weight=1
NAME=Bolt Grenade
ON=@TIMER
sound=1309
effect=2,i_fx_smoke,15,15,0
var.boltbombUID=<link.uid>
FORCHARS 5
f_bolt_bomb_damage
ENDFOR
e_bolt_bomb
REMOVE
RETURN 1
[function f_bolt_bomb_damage]
IF !(<uid> == <var.boltbombUID>)
damage <eval {18 26}>,dam_physical,<var.boltbombUID>
ENDIF
[function e_bolt_bomb]
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+5)> W<eval(<p.y>)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+4)> W<eval(<p.y>+1)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+3)> W<eval(<p.y>+2)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+2)> W<eval(<p.y>+3)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+1)> W<eval(<p.y>+4)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>)> W<eval(<p.y>+5)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-5)> W<eval(<p.y>)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-4)> W<eval(<p.y>-1)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-3)> W<eval(<p.y>-2)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-2)> W<eval(<p.y>-3)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-1)> W<eval(<p.y>-4)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>)> W<eval(<p.y>-5)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-5)> W<eval(<p.y>)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-4)> W<eval(<p.y>+1)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-3)> W<eval(<p.y>+2)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-2)> W<eval(<p.y>+3)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>-1)> W<eval(<p.y>+4)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>)> W<eval(<p.y>+5)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+5)> W<eval(<p.y>)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+4)> W<eval(<p.y>-1)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+3)> W<eval(<p.y>-2)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+2)> W<eval(<p.y>-3)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>+1> W<eval(<p.y>-4)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
serv.allclients sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<p.x> W<p.y> B<eval(<p.z>+5)> W<eval(<p.x>)> W<eval(<p.y>-5)> B<eval(<p.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
|
|
05-28-2015 09:48 AM |
|
The following 1 user Likes Jonaleth's post:1 user Likes Jonaleth's post
Criminal (10-21-2015)
|
amonvangrell
Banned
Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012
britannia shard
|
|
05-30-2015 01:19 PM |
|
|