Alcoholic wrote:what does normalizing vectors do? also, what about converting vectors to angles? i mean, a vector is like 2 8 64, and an angle could also be, 2 8 64, so why do you use vector_toangles?
A normalized vector is a vector with length 1. This means that for any normalized vector the following is true: x^2 + y^2 + z^2 = 1
Vectors are often easier to work with than angles, that's why I converted them.
An angle of (0 90 0) for example would have vector (0 1 0).
Oh, one more thing jv (or anyone else)... I'm thinking of converting this into a server mod... Problem is that the pressing of "Fire" with the binoculars up calls clickitem_fail in the *.scr of the loaded map... is there a way to catch this without editing the maps *.scr file? Basically I want to be able to put the file "rjukanproject_scout.pk3 in main to give the server the scouting ability, without editing any more files... can that be done?
Another thing: Some servers crash after the first round of "Vemork approach" ( With the scout mod ). That is as soon as someone has won.
It only dives if developer and logfile are both set to 0, so I have trouble pin pointing the problem...
Is there anything hostile in this code that could in any way cause a server crash?
Bjarne BZR wrote:It only dives if developer and logfile are both set to 0, so I have trouble pin pointing the problem...
Dives=crashes
I did manage to crash it with logging on once but the bastard MOHAA buffers the log writing so the last ( most important ) lines has a tendency not to be in the log.
Alcoholic wrote:what does normalizing vectors do? also, what about converting vectors to angles? i mean, a vector is like 2 8 64, and an angle could also be, 2 8 64, so why do you use vector_toangles?
A normalized vector is a vector with length 1. This means that for any normalized vector the following is true: x^2 + y^2 + z^2 = 1
Vectors are often easier to work with than angles, that's why I converted them.
An angle of (0 90 0) for example would have vector (0 1 0).
so does that mean if you add x y and z it equals 1??
Actually, after some testing I've realized that its not the scout mod that causes the failure: its the map itself... Still dont know why however But a recompile is on the top of my list...