mirror of
https://github.com/Ragora/T2-DXAI.git
synced 2026-04-22 23:35:03 +00:00
Better timed AI code; dodging code; better audible dodge code
This commit is contained in:
parent
aa87905cf1
commit
8687513a42
3 changed files with 134 additions and 30 deletions
|
|
@ -155,6 +155,13 @@ function GameConnection::getObjectsInViewcone(%this, %typeMask, %distance, %perf
|
|||
return %result;
|
||||
}
|
||||
|
||||
function vectorMultiply(%vec1, %vec2)
|
||||
{
|
||||
return (getWord(%vec1, 0) * getWord(%vec2, 0)) SPC
|
||||
(getWord(%vec1, 1) * getWord(%vec2, 1)) SPC
|
||||
(getWord(%vec1, 2) * getWord(%vec2, 2));
|
||||
}
|
||||
|
||||
// If the map editor was instantiated, this will prevent a little bit
|
||||
// of console warnings
|
||||
function Terraformer::getType(%this) { return 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue