Raiden
15.05.2009, 15:12
Hallo GMod.de Community,
ich hab mir heute gedacht, dass ich mir mal das Wire DoorSTool hole.
Dann habe ich das hier genommen:
http://www.garrysmod.org/img/?t=dll&id=60617
Allerdings wird das Tool nicht unter Wire - Physics angezeigt, wie es eigentlich sollte. Ich kann euch hier mal nen Ausschnitt aus dem LUA Code geben:
local defaultlimit = 5
TOOL.ClientConVar[ "class" ] = "prop_dynamic"
TOOL.ClientConVar[ "model" ] = "models/props_combine/combine_door01.mdl"
TOOL.ClientConVar[ "open" ] = "1"
TOOL.ClientConVar[ "close" ] = "2"
TOOL.ClientConVar[ "autoclose" ] = "0"
TOOL.ClientConVar[ "closetime" ] = "5"
TOOL.ClientConVar[ "hardware" ] = "1"
cleanup.Register( "door" )
TOOL.Category = "Wire - Physics" // Name of the category
TOOL.Name = "#Door" // Name to display
TOOL.Command = nil // Command on click (nil for default)
TOOL.ConfigName = "" // Config file name (nil for default)
local GhostEntity
Diese LUA Datei befindet sich in:
garrysmod\garrysmod\addons\wire doorstool\lua\weapons\gmod_tool\stools
Wenn ihr euch fragt, warum ich nicht einfach das Wire DoorSTool nehme:
http://www.garrysmod.org/img/?t=dll&id=29392
Weil es:
1. Bei mir nicht funktioniert (also auch nicht angezeigt wird)
2. Nicht die anderen Türen von Portal, etc. hat.
Ich hoffe, ihr wisst, woran das liegt, dass das Tool nicht angezeigt wird, und könnt mir helfen.
Edit: Das obere Problem hat sich erledigt, ich habe einfach die door.lua in wire_door.lua umbenannt. Allerdings hab ich nun das Problem, dass alle Türen das gleiche Model haben, also dieses hier: "models/props_combine/combine_door01.mdl"
Beim normalen DoorSTool steht das auch drin, sind allerdings verschiedene Models. Weiß einer, woran das liegt?
ich hab mir heute gedacht, dass ich mir mal das Wire DoorSTool hole.
Dann habe ich das hier genommen:
http://www.garrysmod.org/img/?t=dll&id=60617
Allerdings wird das Tool nicht unter Wire - Physics angezeigt, wie es eigentlich sollte. Ich kann euch hier mal nen Ausschnitt aus dem LUA Code geben:
local defaultlimit = 5
TOOL.ClientConVar[ "class" ] = "prop_dynamic"
TOOL.ClientConVar[ "model" ] = "models/props_combine/combine_door01.mdl"
TOOL.ClientConVar[ "open" ] = "1"
TOOL.ClientConVar[ "close" ] = "2"
TOOL.ClientConVar[ "autoclose" ] = "0"
TOOL.ClientConVar[ "closetime" ] = "5"
TOOL.ClientConVar[ "hardware" ] = "1"
cleanup.Register( "door" )
TOOL.Category = "Wire - Physics" // Name of the category
TOOL.Name = "#Door" // Name to display
TOOL.Command = nil // Command on click (nil for default)
TOOL.ConfigName = "" // Config file name (nil for default)
local GhostEntity
Diese LUA Datei befindet sich in:
garrysmod\garrysmod\addons\wire doorstool\lua\weapons\gmod_tool\stools
Wenn ihr euch fragt, warum ich nicht einfach das Wire DoorSTool nehme:
http://www.garrysmod.org/img/?t=dll&id=29392
Weil es:
1. Bei mir nicht funktioniert (also auch nicht angezeigt wird)
2. Nicht die anderen Türen von Portal, etc. hat.
Ich hoffe, ihr wisst, woran das liegt, dass das Tool nicht angezeigt wird, und könnt mir helfen.
Edit: Das obere Problem hat sich erledigt, ich habe einfach die door.lua in wire_door.lua umbenannt. Allerdings hab ich nun das Problem, dass alle Türen das gleiche Model haben, also dieses hier: "models/props_combine/combine_door01.mdl"
Beim normalen DoorSTool steht das auch drin, sind allerdings verschiedene Models. Weiß einer, woran das liegt?