Search found 1056 matches

by ViPER
Sat Mar 03, 2012 3:05 am
Forum: Public Releases
Topic: OTD Town
Replies: 2
Views: 403

Re: OTD Town

downloaded OTD Town a couple times my game doesnt see the bsp? swapped out the pk3 still not working. any ideas?
by ViPER
Thu Apr 01, 2010 1:20 am
Forum: Scripting
Topic: Scale script_object
Replies: 7
Views: 1423

By what I learned from mapping...... a brush is a brush..... you're stuck with what you got.

script_objects made from brushes are far more versatile then a brush that is a brush....

you can duplicate them, remove them, hide them, move them, change thier angle .... catch breath. I believe you can ...
by ViPER
Wed Mar 31, 2010 11:21 pm
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

Well this is not my cup of tea but using some examples from Elgans global strings script I came up with these.


Leftint local.string:
local.pos = 10
local.pos--
local.left = ""
local.new = ""
for(local.i = 0; local.i <= local.pos; local.i++)
{
local.left = local.string[local.i]

if( local ...
by ViPER
Wed Mar 31, 2010 5:38 pm
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

yea, smart@55, what you said! :p

I'll give that a try with the vector conversion stuff. thanks.
by ViPER
Wed Mar 31, 2010 5:27 pm
Forum: Scripting
Topic: Scale script_object
Replies: 7
Views: 1423

its made of many brushes.
by ViPER
Wed Mar 31, 2010 1:28 am
Forum: Scripting
Topic: Scale script_object
Replies: 7
Views: 1423

Scale script_object

I can't remember ever doing this but It never occured to me i wouldn't be able to scale a script_object with script.

Does anyone know is this possible and how?

my chess board is a script object and I had planned I would be able to set the scale with script but it isn't working.

I tried like this ...
by ViPER
Wed Mar 31, 2010 12:54 am
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

lol glad it works :).

something wrong with my math tho. lol the result always lands in 1 quadrent. if the points origin is in any of the four quadrants the result always lands in +x +y quadrant.

I thought that was what you wanted. If you prefer -x and -y too, try it without the 'abs ...
by ViPER
Tue Mar 30, 2010 6:51 pm
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

Yea man!! that works.

something wrong with my math tho. lol the result always lands in 1 quadrent. if the points origin is in any of the four quadrants the result always lands in +x +y quadrant.

the solution was to move the center origin to the corner. :?

this should work for me tho :) unless ...
by ViPER
Tue Mar 30, 2010 12:37 am
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

as I suspected that returns the distance from a to b. I want the distance from a to b for each plane x,y and z.

ALSO....

abs not compatible with vector types.... How do I get each coord (x y and z) out of local.origin so i can mess with them?
by ViPER
Tue Mar 30, 2010 12:14 am
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

I was in school many years before you were even born and my memory isn't so good. Hell, when you were in Elementary School learning this stuff, I had already retired. :wink:

im referring to coordinate planes. if I have the distance for each plane (from x to x , y to y and z to z) I can recreate ...
by ViPER
Mon Mar 29, 2010 10:35 pm
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

hmmm. not sure, what's abs do?

here's more detail. what i want to do is take a set of coords like...
(level.newcoords = ( x y z))

get the distance for each plane from the level.newcoords to the reference origin like $center.origin

then fill a new var like level.savedpointer (the distances of x,y ...
by ViPER
Mon Mar 29, 2010 6:57 am
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

ooops, no i don't. :(

Ok let me try again.

I have a point of origin (that is different from map to map) But i wish to duplicate a second point that is relative to the first (in every map) If i had the distance x1 to x2, y1 to y2 and z1 to z2 i believe this is the answer.

how can I extract those ...
by ViPER
Mon Mar 29, 2010 6:48 am
Forum: Mapping
Topic: Random crashes - qconsole.log
Replies: 8
Views: 1923

:D hehee
by ViPER
Sat Mar 27, 2010 6:14 pm
Forum: Scripting
Topic: get distance of a vector
Replies: 14
Views: 2564

get distance of a vector

I have a coord and a point of origin. I want to print the distance of each plane in order to duplicate the coord. how do you get the distance and account for neg coords calculated with positive coords?

EDIT: I think I got it. Thx