scripting plants to move by force push -1 reply

Please wait...

leonkennedy4011

the-pink-herb-side

50 XP

18th October 2007

0 Uploads

114 Posts

0 Threads

#1 10 years ago

hello I was wondering if it was possible to script a brush to move when you force push it like wind blowing at a thin plant,somthing like that. I making a map of felucia and it would be nice to have a moving tree enviroment. I don't have any experience in scripting so if anyone knows how to do this it would be nice for you to explain it in detial thank you in advance.




Guest

I didn't make it!

0 XP

 
#2 10 years ago

I'm pretty sure you can do that, making plants move like as if the wind were blowing them. Force pushing, I'm not sure, you'd have to ask someone more experienced in scripting.




Double W Jedi

The Internet ends at GF

50 XP

23rd March 2008

0 Uploads

117 Posts

0 Threads

#3 10 years ago

Holy cow, join the club because I have been working on a Felucia map too. Well ya it is possible to create a script for that. Are you familiar with the program bevhad, it comes with the SDK that raven software released. Open that up, and double click on the rotate function, and give a degree value for either the x-axis or y-axis or z-axis. Create a folder for your script, save it and give it a name, compile it, and the open up radiant and make your brush a func_static, and then check the force push box in the enity window, and then for key type "usescript" and then for value type in "the name of your folder/name of your script". I think thats how its done. Well good luck with Felucia, looks like we're competing against each other.




leonkennedy4011

the-pink-herb-side

50 XP

18th October 2007

0 Uploads

114 Posts

0 Threads

#4 10 years ago

..I really hate behave ed but thanks a lot for the info and you will most likly get it out befor me I haven't been working much on it latley XDD good luck to you as well




SiLink

(JAWA) Leader

50 XP

13th February 2005

0 Uploads

1,663 Posts

0 Threads

#5 10 years ago

Szico did some really funky stuff with lamp posts for the Matrix Unleashed not so long ago so I assume it's possible bending trees.

This is what I'm talking about: YouTube - TMU SubMetro - Destructable Environment




leonkennedy4011

the-pink-herb-side

50 XP

18th October 2007

0 Uploads

114 Posts

0 Threads

#6 10 years ago
SiLink;4591624Szico did some really funky stuff with lamp posts for the Matrix Unleashed not so long ago so I assume it's possible bending trees. This is what I'm talking about: YouTube - TMU SubMetro - Destructable Environment

wow thats really cool but is it possible to make a script run more then once?




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#7 10 years ago

It's possible, but it's so involved that it's not really worth it. You'd have to give BehavED control of every individual leaf, and script them to move individually.

Too many entities, too much work. :/ You'd probably overload JA with about 20 plants doing it that way, and it wouldn't look very realistic (that depends on how many entities you already have in your map - it you have none, and the plants have 10 leaves each, you can do about 100 plants). But that ALSO means you would have to make your own plant models.

Now, if you wanted the plant to simply slide across the floor, yes, scripts can do that......if you want it to snap in half, yes, you can do that....but you can't bend things.

So no, it doesn't seem possible, at least to me.




Szico VII

We want FF7-2/remake!

50 XP

15th September 2003

0 Uploads

1,683 Posts

0 Threads

#8 10 years ago
wow thats really cool but is it possible to make a script run more then once?

Yes, of course.

As for plants, you could simply make a set of func_statics with the leaf textures on it (thinking along the lines of the large grasses here) and simply make them rotate slightly around a fixed origin when force pushed, and then back again. That would be fairly simple and wouldn't require a huge number of entities.

Pst, NAB, what were the lamp-posts doing if not bending :D You can do it, it just involves like 5 points on each lamp and some effort getting the angles right.




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#9 10 years ago

Szico, those lamps have rings on them. That makes them easy to bend like that. This is a plant. You can't put rings on a plant....it just won't look right.

If it's a tree, you MIGHT be able to get it to bend realistically. However, with a plant......those are awfully small stems.

The real question is....how far do you want them to bend?? You might be able to get them to bend a little without looking too bad, if you have enough foliage around the stem.