Problem rotating $bind clip

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Problem rotating $bind clip

Post by Kalti »

Ehrm guys... I could use some help here....

The boatmodel on the sandhill in the image below (center right; behind the crates) doesn't have a collision map. It's a script model (targetname=beachedboat) and I'm trying to bind a wood clip shape to it which I made into a script_object (targetname=beachedboat_clip).

Image

Now, the boat model is set under some wacky angles because of the sandhill and the clip shape doesn't 'snap' to the exact location and orientation of the model...

I tried using an added origin brush to both elements but with no result at all.

Perhaps anyone of you with some insight on this ?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

Well if it's beached does it ever move? if it doesnt just forget bindings and build brushes around it.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

clip

Post by tltrude »

Hmmm, Can't you just add the clip brushes to the script_object boat?

Anyway, you will have to use something like "vector_toangles" before you move and bind the clip boat. Bind, does not "snap" one object to another object's location. It just ties them together, so when you move one the other moves the same direction. "Glue" will make their origins snap together, but again, the angles will have to be pre set.
Tom Trude,

Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Glue glues the origin and angles as well.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

Okay then, thanks sofar guys...

I'm willing to try my hands on the glue 'command'

The rowboat model itself:

Code: Select all

angle 45
angles 148 45 0
classname script_model
model static/bobson_boat/bobson_boat_blue.tik
origin 1033.19 -2428.88 239.92
spawnflags 3
targetname beachedboat
testanim idle
Anyways, if I'm understanding it all correctly... I need to create a new script_model of the boat; add an origin brush to the entity and then set it's angle(s)

Put in the clip shape as a script_object with an added origin brush at the same orientation like the origin of the boat; give it a unique targetname.

save the map & compile it.

Then do the actual gluing in the script. Anybody willing to provide me with an example script glue line ?
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Does the boat ever move? Or is it just a decoration?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Why not put a map file of ur boat where ur tik file is? This way the clip brushes would be rotated together with ur boat model:
Place ur model in an empty map so it's arrow's tail is as close to the origin (0/0/0) as possible. Build all the clip brushes needed around ur boat, delete the model and save the map with the same name as ur tik file and in the same folder. Just like for example the model of models/furniture/simplechair
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Only if it is a static decoration. Otherwise you'd need to, depending on the entity class, glue script_objects to it or set the boat's collisionent to them.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

$beachedboat_clip glue $beachedboat

Why does it need to be a script_model? If you would just tell us what you are trying to do, we wouldn't have to guess so much.

$beachedboat solid

Models and objects, already have origins. They are in the center of the bounding box. If you add an origin brush, you offset the origin to the center of that brush.
Tom Trude,

Image
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

Sorry guys... I'm confusing the purpose of this beached boat with the scripted movements of the boats in the water (those are script_models)

This boat is beached and so, no need to script them... which would imply I can just add it as a static model... It is however, a port from Spearhead to AA rowboat model, and to me it looks like the boat doesn't react properly to rotations and/or angle(s) input...

I'll try the map thing (thanks tltrude) although I think I tried it before with no result... again, something about this model port is just not right :(

Sorry about all this but I'm just trying to solve a problem I come across here.
Image
Post Reply