Search:
Type: Posts; User: initrd.gz
Search took 0.01 seconds.
That's not how it works at all. It searches in the table you are indexing first, and if it doesn't find anything, then it calls (or searches) __index.
My friend and I are getting this as well, in exactly the same spot. The material shows up in mat_texture_list and non-textured objects render, but materials either don't work at all (in my case) or...
Apparently I have to call
weapons.Register(gmod_tool, "gmod_tool")
to reregister it and update existing entities with the function (they don't just get the functions from their class tables?)
I'm trying to forward calls to gmod_tool:GetViewModelPosition() to the stool object, like this:
local gmod_tool = weapons.GetStored("gmod_tool")
local old_getviewmodelposition =...
AFAIK it's either sv_cheats or sv_allowcslua; You only need to sv_allowcslua.
You are technically overriding the OnTakeDamage of the base Gmod entity. Also, why do you have a redundant return statement?
Ewww.... >_>
I mean yea it works, but.... ew.
Oh, sorry, Chrome doesn't have a GB dictionary so it gets flagged as a misspelling. :/
Also, for type checking, what's wrong with luaL_checkudata?
Uh, yes, especially with LuaJIT where calls to non-FFI C functions can't be compiled.
Also it's "Optimizing" not "Optimising"
That's not the point. The point is that the addons shouldn't be relying on this, because it silences potential problems.
I'll make it compatible with the GM implementation, but with a convar to...
Scripts shouldn't be passing non-integer values for repetitions; it doesn't make sense, and probably means that a calculation is going wrong somewhere.
Also post here...
I've rewritten some of Garry's built in functions to provide more features and better performance.
Download from the Github page
Timers
Improvements:
• Error capturing (with full tracebacks...
http://wiki.garrysmod.com/page/Global/CreateConVar
Page is Global/CreateConVar but incorrectly documents some mashup of that and ConVarExists
Yea, I'm definitely going to rewrite the hook module...
I'm looking through the hook code...
for k, v in pairs( HookTable ) do
if ( v == nil ) then
ErrorNoHalt("Hook '"..tostring(k).."' tried to call a nil function!\n")
HookTable[ k ] = nil...
NAN = Not A Number, ie the result of <anything>/0. It's not Java specific: http://en.wikipedia.org/wiki/NaN
New thread with more stuff: http://www.facepunch.com/showthread.php?t=1222105&p=38252042#post38252042
That's not possible unless Garry switches to using FFI for everything. Any call to a 'Classic' C function (those defined via the C/Lua API, ie, almost every GMod built in function) aborts the...
No it shouldn't. He isn't supposed calling the function.
net.WriteBit takes a boolean. net.ReadBit returns an integer.
This is not cool when 0 evaluates to true. I spent over an hour trying to find out what was wrong with my code because of this.
Where the hell did the changelist go?
https://docs.google.com/document/d/1dVgp8ojkrIjxVRFADUF5uwZQiLLivHixkmV5PW5v9Fw/edit gives "Sorry, the page (or document) you have requested does not exist."...
Why not make Normalize work like setmetatable or ffi.gc where it returns the object you use it on as well as normalizing it? Then we could still use it in most equations without splitting it into...
Oh, for sounds.
Uh, what is the purpose of the hook.Add's? 'Death' and 'Hurt' aren't defined.
Why would you want random file names?
Yea this is a much better solution; I'm using it in my game and it works extremely well. Foreign keys also help with consistency and moving rows around.
Start single player game
Realized I haven't changed a piece of code that I needed to
Alt+Tab -> Change it
Wait for GM to finish loading so I can exit SP
Exit
Repeat
Don't see why not. They both compile to DLLs which are a standard format. According to http://www.mingw.org/wiki/MixingCompilers the only real problem is name mangling, which is AFAIK solvable...
You can also use math.exp(1) instead of hardcoding the constant.
EDIT: Herp derp math.log = natural log.
And this, cause the enums aren't documented on the main wiki yet: http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index41fc.html
Specifically NO_SELF_COLLISIONS
By the way coroutines are broken in GM12. They're fixed in GM13 though.
http://www.lua.org/manual/5.1/manual.html#2.11
First things first; why a global variable? Make it local to your script.