javelin that can be picked up after attack

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

so I did this unit that throws javelins, and I want him to have a max of 4 javelins to throw.
I want him to be able to pick up the ones he throws so he never runs out of ammo.
Everything is sweet and it does that except:

Problem: if I do a regular projectile out of his javelin(like a soulless spear) the projectile ends when it hits either the ground or another unit and therefore cannot be picked up afterwards.

if I check the option : promote at end of lifespan, and I create a javelin on ground projectile that's created once this javelin on air dies, then somehow I'm having trouble with the damage...it hits the enemies but most of the time it bounces and doesn't hurt a fly.
is there a specific set of flags I need to mark so this projectile at end of lifespan does normal damage to the units asap it hits them?
thanks!
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
Zephirus

Post by Zephirus »

look at how swords are used as body parts. Open "Ghol Cleaver" as an example and look at the tag. I dont remember off hand how it works, but what you're doing is similar to this.
lank
Posts: 766
Joined: Tue Mar 02, 2004 1:46 am
Location: Sydney, NSW, Australia
Contact:

Post by lank »

it needs to remain after detonation and detonate on impact every time. just be aware that if it doesn't become inert at rest some annoying things can happen, and it can look strange with the way javelins (and arrows) work graphically. you'll see what i mean. :)
*toot*
User avatar
William Wallet
Posts: 1494
Joined: Tue Mar 30, 2004 9:40 am
Location: Perth Australia
Contact:

Post by William Wallet »

Yeah, I'm not sure how I did it but I once made it so my arrows just... bounced, across the map. It looked pretty neat, but got annoying.
Okay I got the models but now I'm too dumb to do anything with 'em
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

I'll keep trying...is kind of the 1,000 combinations..hehe
I'll check that ghol thing

if for any reason you guys discover the secret let me know!
thanks!
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
Zeph
Posts: 1019
Joined: Wed Apr 13, 2005 4:57 pm
Location: Montreal

Post by Zeph »

lank knows the secret

gah too lazy to login

edit : I was logged in, lol
User avatar
ChrisP
Posts: 977
Joined: Fri Mar 12, 2004 10:57 pm
Location: Upstate New York

Post by ChrisP »

I would try this:

Make two projectiles, 'Javalin A' and 'Javalin B', and one projectile group, 'Javlin detonation'.

Have your unit use Javalin A for its attack, but Javalin B as the ammo for the attack. Set the maximum ammo to 4, or whatever you require.

In the projectile tag for Javalin A, under detonation, set the normal frequency to 1.00, and 'Javalin Detonation' as the projectile group tag it detonates to. You don't need to use a lifespan promotion, and do NOT set it so it remains after detonation.

In the Javalin Detonation projectile group tag have it produce one Javalin B projectile. Javalin B can be set to "remains after detonation" in its projectile tag, unlike Javalin A. Also for Javalin B, under "Edit Flags" in the projectile tag, turn on "Becomes dormant at rest".

Hope that helps.
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

dude, thanks a lot for the knowledge!
sometimes I wonder how you guys know so much!

I did that copying a regular arrow projectile of a bowman monster.
It works!!!!!!!!!!!!!!!!
the only problem is when the javelin(as the arrow also does) hits a unit somehow the projectile javelin on ground(javelin B) is not left there...but it's really a minor problem!
the cool thing is now it works!!! ta da!
thanks a lot!!!!!!!!!!!!!!!!!!!!!
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
User avatar
ChrisP
Posts: 977
Joined: Fri Mar 12, 2004 10:57 pm
Location: Upstate New York

Post by ChrisP »

carlinho wrote:the only problem is when the javelin(as the arrow also does) hits a unit somehow the projectile javelin on ground(javelin B) is not left there...


Oops. See if this fixes it:

Open the projectile tag for 'Javalin A'. In the detonation section, where it says Target, set it to your projectile group 'Javalin detonation'.
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

what's up chris,
somehow it's not working.
nothing comes in return.
I'm using a projectile tag with position 0 to 1
maybe it's that?
the "havelin on earth" is the same as the one that works for missed javelins that hit the ground...

there's so many combinations...hehe
any ideas?
thanks!
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
User avatar
ChrisP
Posts: 977
Joined: Fri Mar 12, 2004 10:57 pm
Location: Upstate New York

Post by ChrisP »

Hmmm... I'll have to try to create the effect you're looking for myself and see if I can get it to work, or not. I'll try to do it when I get a chance, but might be a day or two.
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

thanks a lot chris!!!
I'll keep tweaking variables!
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
User avatar
ChrisP
Posts: 977
Joined: Fri Mar 12, 2004 10:57 pm
Location: Upstate New York

Post by ChrisP »

No problem, carlinho. This is the sort of stuff I like to figure out, plus I'm really looking forward to your Ancient Greece plugin.

Besides, it turns out Zeph and lank were much closer to the answer than I was, so I probably wasted your time by butting in anyway. :blush:

However, in my tests, I couldn't get a bowman arrow to not vanish when it hit the ground, unlike how a ghol cleaver persists. Dunno why... something in the damage window, or extra sequence needed in the collection for lying on the ground mb? Or mb just me.

So anyway, after playing around, I still used the original Javalin A and Javalin B method I outlined, but in the detonation section of the Javalin A projectile tag, I checked both "At Rest" and "Remains after detonation" just like lank and Zeph recommended. To keep the Javalin from bouncing around stupidly, go to the object tag that Javalin A uses and set the elastic coefficient to something like .047 instead of the typical .500. You might want to use a duplicate object tag for just the Javalin A projectile so you don't screw up the bounce of other projectiles.

Enjoy.
User avatar
carlinho
Posts: 1224
Joined: Tue Jun 08, 2004 8:23 pm

Post by carlinho »

muaaaahahahahahah!!!!!!!!!!
greeeaaaat!!!!!!!!!!!!!!!!!!!
I had done that but each time the javelin touched the ground it left a new projectile javelin on it, so you had this 6 javelins created from this 1 throw..
but that was the problem~!!!!!!!!!!
I created what you told me a new object tag with an elastic coef of 0.00 so now it comes to a complete stop where it lands and doesn't create new javelins everywhere...
thanks!!!!!!!!!!!!!!!!!!!!!!!!! :D
http://carlinho7.tripod.com
Home of ANCIENT and CLASSICAL GREECE plugin on the works.
Image
Post Reply