-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrw_server.lua
More file actions
31 lines (24 loc) · 816 Bytes
/
rw_server.lua
File metadata and controls
31 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- Created by (c)The_GTA.
-- TEST:
local dffname = "gfriend.dff";
local clumpStream = fileOpen(dffname);
if not (clumpStream) then
outputDebugString( "failed to open " .. dffname );
return;
end
local dff, err = rwReadClump(clumpStream);
fileClose(clumpStream);
if not (dff) then
if (err) then
outputDebugString( "DFF LOAD ERROR: " .. err );
else
outputDebugString( "unknown DFF load error" );
end
elseif (false) then
local num_frames = #dff.framelist.frames;
outputDebugString( "num frames: " .. num_frames );
local geom = dff.geomlist[1];
local mt = geom.morphTargets[1];
outputDebugString( "radius: " .. geom.morphTargets[1].sphere.r );
outputDebugString( "x: " .. mt.sphere.x .. ", y: " .. mt.sphere.y .. ", z: " .. mt.sphere.z );
end