bad rotation of model attached to player

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

bad rotation of model attached to player

Post by wacko »

Heya! Hello2every1.
It's been a while, yeah, but now I'm back in business. :D

Recently I found an old script Nuggets once did to introduce CTF to Mohaa. I know there's Mefy's, but Nuggets' got real flags which I'd prefer. So I decided to give them a try again and put them in my lil map. :)

Now, these flags, when they are stolen, are in a rolled vesion attached to the players back. But: There they turn the wrong way: Player turns left, flag turns right and vv. So, most of the time they float next to the player's shoulder instead of staying on his back.

To get things running, I'd need either someone capable of understanding Nugget's script (which can be downloaded here) or atleast someone telling me how to enable 3rd_person view in a running obj match. This way I could see the results of my trial&error attempts without a second pc.

cya Wacko 8-)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

3rd person

Post by tltrude »

In your script:

setcvar cg_3rd_person 1 // turns it on
setcvar cg_3rd_person 0 // turns it off
Tom Trude,

Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:roll: that easy; I tried this in the console but there it was "cheat protected"... thanks, Tom!
Now I can turn that flag upside down and back and forth, and hopefully one setting will result in sth I need :P
LeBabouin
Lance Corporal
Posts: 22
Joined: Tue Jun 21, 2005 11:10 pm

Post by LeBabouin »

Nugget's script
Is it a serverside mod?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

LeBabouin wrote:
Nugget's script
Is it a serverside mod?
nope, it's clientside

it's workin now, btw.

Code: Select all

self.rolled attach local.player "Bip01 Spine1" "0" ("13 -5 14")
has to be

Code: Select all

self.rolled attach local.player "Bip01 Spine1" "1" ("13 -5 14")
(whatever that means :roll: )
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

The '1' means the rotation of the model (set with angles) is relative to the bone to which it is attached. If you put '0' the rotation is absolute.
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Hehe, jv, thnx! U know everything, don't u :P Sometimes I wonder whether u have written the engine... Or, where is that holy source of knowledge hidden?
Post Reply