Help!, grab and throw things

AngelAC

New member
hello guys!, i hope you are fine, i have some trouble trying to make my character grab a box and then throw it, like the barrels in double dragon, so that means he should walk with the box and the throw it when decided. I also want to do the same with enemies (like super mario bros 2 hehe), but the box obiously can make more damage and can only be used three times. The other problem is that i don't know how to make the "grabbed" box fit right in top of the character, i've tried to change the offset but it doesn't fix at all, and afer a little time if i turn back, the box dissapears :'(. I've loaded the box like an enemy, this is the code:

Code:
name    bigbox
type    enemy
health 34
nomove 1 1
candamage enemy

anim	fall
	offset	21 34
	bbox	20 32 0 0
	frame	Data/Chars/Misc/bigbox.gif
		
anim	grabbed
	offset	25 82
	bbox	20 32 0 0
	frame	Data/Chars/Misc/bigbox.gif
		
anim	idle
	offset	21 34
	bbox	0 0 40 33
	frame	Data/Chars/Misc/bigbox.gif
		
anim	pain
	offset	21 34
	bbox	0 0 40 33
	frame	Data/Chars/Misc/bigbox.gif
		
anim	rise
	offset	21 34
	bbox	0 0 40 33
	frame	Data/Chars/Misc/bigbox.gif

And this is what my character can do:

Code:
name ODST
type player
health  100
gfxshadow	1
speed   10
grabturn 1
grabdistance 36

anim	grab
	offset	17 47
	bbox	9 7 22 41
	frame	Data/Chars/ODST/grab.png
		
anim	grabwalk
	loop	1
	offset	12 53
	bbox	4 9 19 41
	frame	Data/Chars/ODST/grab_walk1.gif
	offset	11 52
	frame	Data/Chars/ODST/grab_walk2.gif
	bbox	9 9 17 37
	offset	16 53
	frame	Data/Chars/ODST/grab_walk3.gif
	offset	17 54
	frame	Data/Chars/ODST/grab_walk4.gif
	bbox	11 9 19 37
	offset	19 53
	frame	Data/Chars/ODST/grab_walk5.gif
	bbox	11 8 15 38
	offset	17 53
	frame	Data/Chars/ODST/grab_walk6.gif
	bbox	6 10 18 36
	offset	13 54
	frame	Data/Chars/ODST/grab_walk7.gif
	offset	14 54
	frame	Data/Chars/ODST/grab_walk8.gif

I have been reading the manual but i can't get with the right solution, i would greatly appreciate your help. Thank you,

 

Attachments

  • HALO TTB - 0003.png
    HALO TTB - 0003.png
    26 KB · Views: 17
  • HALO TTB - 0004.png
    HALO TTB - 0004.png
    27.6 KB · Views: 16
Hmmm.... you need to use weapon model to create barrel carrying ability like in Double Dragon

It's not so simple so I suggest you to download Double Dragon mods to see how it's done.
You can also download this small demo to do it. That small demo has more features BTW
 
Hmmm.... you need to use weapon model to create barrel carrying ability like in Double Dragon

Thank you Bloodbane ! yeah, i was thinking about that, i've checked some modules of DD and in fact is a weapon, the one that you shared is really helpfull, right now i've  made the model and it works also thanks to a Kamilloz tutorial(https://www.youtube.com/watch?v=bK5xNsnWGdk), when the box destroys (is a bomb) it spawns the next one with "spawnentity". The problem is that the box don't follow along but stops when touch an enemy, i'm working on this right now, when i've got the perfect solution i will reply it. For now if you or someone more can give any trick or advice it would be really helpfull, thank you! :)

 
Back
Top Bottom