mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-11 03:13:06 +00:00
some vector tests
This commit is contained in:
parent
5275bdb35e
commit
54bdd06aab
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ entity() spawn = #3;
|
||||||
void(entity) kill = #4;
|
void(entity) kill = #4;
|
||||||
|
|
||||||
float multi, decla, ration;
|
float multi, decla, ration;
|
||||||
|
.vector memvec;
|
||||||
|
|
||||||
.void(string x) printit;
|
.void(string x) printit;
|
||||||
|
|
||||||
|
@ -29,8 +30,11 @@ void(vector par) vecpar = {
|
||||||
|
|
||||||
void() main = {
|
void() main = {
|
||||||
local entity pawn;
|
local entity pawn;
|
||||||
|
local vector foovec;
|
||||||
print3("should be 1: ", ftos(dot('1 1 0', '1 0 0')), "\n");
|
print3("should be 1: ", ftos(dot('1 1 0', '1 0 0')), "\n");
|
||||||
|
|
||||||
|
foovec = '3 4 5';
|
||||||
|
foovec_y = 9;
|
||||||
pawn = spawn();
|
pawn = spawn();
|
||||||
pawn.printit = myprintit;
|
pawn.printit = myprintit;
|
||||||
pawn.printit("Hello");
|
pawn.printit("Hello");
|
||||||
|
|
Loading…
Reference in a new issue