mirror of
https://github.com/icewind1991/sm-sourcenav.git
synced 2026-06-03 17:14:07 +02:00
basic nav height query
This commit is contained in:
parent
f54177a2e1
commit
94d7095a06
5 changed files with 158 additions and 6 deletions
29
include/sourcenav.inc
Normal file
29
include/sourcenav.inc
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#if defined _sourcenav_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _sourcenav_included
|
||||
|
||||
methodmap SourceNav < Handle {
|
||||
public native SourceNav(char[] path);
|
||||
public native float query(float x, float y, float z_guess);
|
||||
}
|
||||
|
||||
public Extension __ext_sourcenav =
|
||||
{
|
||||
name = "sourcenav",
|
||||
file = "sourcenav.ext",
|
||||
autoload = 1,
|
||||
|
||||
#if defined REQUIRE_EXTENSIONS
|
||||
required = 1,
|
||||
#else
|
||||
required = 0,
|
||||
#endif
|
||||
};
|
||||
|
||||
#if !defined REQUIRE_EXTENSIONS
|
||||
public void __ext_sourcenav_SetNTVOptional()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue