Hello everyone.
Yesterday I thought: "Why are weapons always good for the player who uses them?"
So I had the following idea: I want to make a stone a stone like weapon1 that, if it gets thrown, will transform into an angry-living stone and attacking the one who threw it.
I already made it so far that it transforms into that angry-stone thingy, but at the end i have the following problem:
Because a weapon joins your team if you grab it, the angry stone will be on your side. Is there any way to fix that without Hex?
Pleasy reply.
There is:
You can either make it to join enemy side OR make it independent.
Enemys team: Can't remember that one, i think it was something with rebounding.
Independent:
Not very sure either, but you should try to spawn a T3, which spawns a weapon, that "picks your stone up". This should turn the stone into independent.
Does this work during a 1vs1?
I read this, but thought it would only work for stage mode.
Edit: Will try Alblakas method for the independent-thing. Just one moment.
(02-08-2010, 11:57 AM)MH-Razen Wrote: [ -> ]http://www.lf-empire.de/en/lf2-empire/da...n-the-evil
maybe this help..., not sure in this special case...
Won't work, that's a way to copy
enemy T0 rather then switch team...
Quote:Does this work during a 1vs1?
Though it's not the thin you need - yes
Wouldn't state 18 work?
Like the stone spawns a T3 or T0 in his flying frames with state 18 and a itr.
I tried the idea from Alblaka, but it didn´t work. Im posting the Codes. Maybe I got something wrong.
The fake stone:
<frame> 20 on_ground
pic: 5 state: 2004 wait: 0 next: 22 dvx: 0 dvy: 0 centerx: 29 centery: 56
itr:
kind: 14 x: 21 y: 37 w: 16 h: 18 vrest: 1
itr_end:
opoint:
kind: 1 x: 0 y: 0 action: 116 dvx: 0 dvy: 0 oid: 129 facing: 10
opoint_end:
bdy:
kind: 0 x: 11 y: 15 w: 36 h: 40
bdy_end:
<frame_end>
<frame> 21 just_on_ground
pic: 3 state: 2000 wait: 1 next: 999 dvx: 0 dvy: 0 centerx: 29 centery: 56
itr:
kind: 0 x: 6 y: 9 w: 44 h: 46 dvx: 5 dvy: -7 fall: 70 vrest: 17 bdefend: 30 injury: 60
itr_end:
<frame_end>
<frame> 22 on_ground
pic: 5 state: 8059 wait: 0 next: 22 dvx: 0 dvy: 0 centerx: 29 centery: 56
itr:
kind: 14 x: 21 y: 37 w: 16 h: 18 vrest: 1
itr_end:
bdy:
kind: 0 x: 11 y: 15 w: 36 h: 40
bdy_end:
<frame_end>
The weapon that picks the stone:
<frame> 116 picking_heavy
pic: 50 state: 15 wait: 2 next: 117 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 41 y: 79 weaponact: 10 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 25 y: 27 w: 31 h: 52
bdy_end:
<frame_end>
<frame> 117 picking_heavy
pic: 50 state: 15 wait: 2 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 41 y: 75 weaponact: 10 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 25 y: 30 w: 33 h: 48
bdy_end:
<frame_end>
I dunno whether you just forgot to post it, but you need an itr:2 to pick up things... (for the stone-picking weapon)
Guess we should wait until Nave or whoever comes online, im quite a newbie when it comes to anything related to weapons ^^
Oh, I completely forgot this part of the picking move. I will write it now.
Edit: Wrote it, but it still doesn´t works.
The new picking-weapon code:
<frame> 116 picking_heavy
pic: 10 state: 3 wait: 3 next: 117 dvx: 0 dvy: 0 dvz: 0 centerx: 40 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 2 x: 21 y: 57 w: 37 h: 24 vrest: 1
itr_end:
bdy:
kind: 0 x: 23 y: 15 w: 31 h: 63
bdy_end:
<frame_end>
<frame> 117 picking_heavy
pic: 50 state: 15 wait: 2 next: 118 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 41 y: 79 weaponact: 10 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 25 y: 27 w: 31 h: 52
bdy_end:
<frame_end>
<frame> 118 picking_heavy
pic: 50 state: 15 wait: 2 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 41 y: 75 weaponact: 10 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 25 y: 30 w: 33 h: 48
bdy_end:
<frame_end>
(02-08-2010, 12:54 PM)Alblaka Wrote: [ -> ]Guess we should wait until Nave or whoever comes online, im quite a newbie when it comes to anything related to weapons ^^
I was online tha whole time already, but I also can't help him except with a hex solution...