Jump to content

Shirk

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by Shirk

  1. I figured out after I posted this that FindChild is probably used to tell where the muzzleflash should be on the gun, but my problem still remains as to how to get the gun positioned in front of the camera like the default pistol is. Whenever I load a gun it is always out of sight on my screen, and not directly in front of the camera like I would like it to be. Most games that Ive modded use a bone or camera that the code detects and places that in front of the camera. But Im not seeing anything of the likes here in leadwerks.

  2. Im having a bit of an issue when it comes to trying to figure out how to add a new gun using the fpsweapon script. Ive already made a new script for my gun, but Im really unsure how to actually get a functioning weapon with animations. Around line 58 within my weapon script is this line

     

    local tag = self.entity:FindChild("akm")
    

     

    Which seems to be how I load my custom model, but it is offset and Im not sure how to change that either.

  3. When making a moderately detailed map its a pain to navigate through the scene tab to find something instead of searching around the map for it. It would be nice if the Scene tab automatically organized files into certain folders. All models go into the model folder, all CSG goes into the CSG folder, all entities go into entity folder, and all lighting goes into the lighting folder, ect. As well it would be nice for when you copy a csg, that it gives the newly copied csg a new number instead of having several "Box 8".

     

    PS are we going to have a grouping system like in Hammer?

    • Upvote 1
  4. I would say just look at the flashlight that's already included. I dont think you can really light up the hands without them casting shadows though, which is a huge problem. One thing you can always do though is make another spot light entity just a few units behind the other one.

  5. Are you able to change the ambient lighting at all within a script? I could see that being useful for something like this. When you pull out your flashlight/lantern, the ambient light drops to 0, or when you crouch your "night vision" kicks in and the ambient lighting brightens up a bit allowing you to see in the shadows.

  6. Although that is one way to do it, I feel that its limiting and would be a bad decision for performance, unless the model would be an instance and in that case wouldn't really be expensive at all. You also run into the problem of what happens when you get close, it will be a perfect outline of all the detail on the model, if it is lit it will still receive light (unless the texture is emmisive or doesnt receive shadows)

×
×
  • Create New...