Static Models at an arbitrary up-down angle

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

Moderator: Moderators

Post Reply
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Static Models at an arbitrary up-down angle

Post by Killerdude »

I am tring to use the static model "static/lamp/lightbulb-covered-nowire" as a spot light that points from the ground up on the face of a building. If I try to change the angle in the entity dialog box it just rotates it about the Z axis and basically does nothing. If I change it to up or down it points in a horizontal plane, which is close and may have to be good enough. However, it would be nice to look right. Is there a way to set an arbitrary up-down angle on a static model or does the shader need to be edited?
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Are you using the neg sign ( - ) ? Sometimes you need to.

Also, /tutorials.php?category=All

look for light beams.
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Post by Killerdude »

It is not the light beam that looks funny, its the static model of the lamp. I'll post a picture tonight when I get home ;)
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

dirty way of doing this...put a light entity in the map at a height that would big within the spotlight's light, highlight both your lightbulb entity and the lightbulb and connect, deselect , highlight the light entity and delete . the lightbulb entity should still be at the new angle .

either/or just jot down the angle value your lightbulb entity has when it's connected to the light entity, delete the light entity, highlight the lightbulb, pull up the entity window and punch in the new value for angle(s?) .
i'm not f****** angry, i'm from philadelphia .
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 »

Use the angles (note the plural form) entity key. The value is the 3 angles of a Tait-Bryan rotation (do read the article, it's not as hard to understand as it seems ;)), pitch, yaw and roll respectively, separated with spaces.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

just bookmarked that, thanks rook .
i'm not f****** angry, i'm from philadelphia .
Image
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Post by Killerdude »

Thanks for the help all. I would like to re-iterate "use the plural form". It worked much better with the "S".

From g_allclasses:

Code: Select all

angle( Float newAngle )

      set the angles of the entity using just one value.
      Sets the yaw of the entity or an up and down
      direction if newAngle is [0-359] or -1 or -2

angles( Vector newAngles<0.00...360.00><0.00...360.00><0.00...360.00> )

      set the angles of the entity to newAngles.
Post Reply