• Content Count

  • Joined

  • Last visited


About tommysticks

  • Rank
    Not the Cuddly Type
  • Birthday 01/01/1987

Profile Information

  • Gender

Recent Profile Visitors

1810 profile views
  1. tommysticks

    Modifying Zombie Attributes

    It is possible to access this info, and I’m pretty sure you’re correct with OnCreateLivingCharacter, however I’m on my phone and I’ve stopped modding PZ. I do have a mod on steam that makes zeds spawn with different clothes and I it would be the same event you’re looking for. Can’t tell you what it is off the top of my head, but I’m pretty sure it is OnCreateLivingCharacter. As far as inventory goes, Zeds currently don’t actually have anything in their inventory until they die and a player approaches the corpse, which triggers an event and adds items. Zombie corpses are their own container type. Using whatever that event is (can’t remember what it is) you can force it to add special items under special conditions. Hope this helps a little.
  2. tommysticks

    Vanilla Lightsaber Mod

    What do you mean behave like a real lightsaber? It does sounds n shit, kills instantly. I see you’ve posted on a lot of my mods, I’ll try to hook you up but it’ll be like a week. I’m in training. I could certainly add more colors.
  3. tommysticks

    Fix the Aiming System or revert to old one.

    Good point. Don’t know how much that would fuck it up. Mod would be easy to make with this.
  4. tommysticks

    Fix the Aiming System or revert to old one.

    Would a fix be to just drop all the weapons aiming arcs to whatever the lowest value is?
  5. tommysticks

    Pump it up

    Firs... ...ah damn it
  6. This shit works, man. Pretty excited right now! Yo dog, sorry taken me a minute to get back. Busy as hell these days. Thanks to @Connall a bunch of this shit can be cut out. I gotta mess around with it then I'll get back to you.
  7. tommysticks

    Lua Method "loadSkinnedZomboidModel"

    I suppose I should mention, the "hair" that I loaded is a backpack. I hope you can see where I'm going with this.
  8. tommysticks

    Lua Method "loadSkinnedZomboidModel"

    So I'm still fuckin around with it, but I got the model to load in-game but had an error and had to restart. Upon restart my model was visible with a custom texture. Don't know what caused the error, but my game is so fucked from messin around with shit it could have been a number of things. And yes, it is an old model I've used to get in-game the old wonky way, but the version I'm screwing around with is clear of all my old ModelManger.class edits. Behold! Back on track! Yes, that is indeed the tip of a peepee on bob. Back on the other track! Here's my working code: local function loadTGModel() dir = getDir("Tommyguns"); txt = ".txt"; png = ".png"; local loadTable2 = { "chops_backpackwstraps", } for i, k in ipairs(loadTable2) do -- print(i, k); name = k; locationModel = dir .. "/media/models/" .. "beard_" .. name .. txt; locationTexture = dir .. "/media/textures/" .. "beard_chops_backpackwstraps" .. png; print("Model loaded: " .. tostring(locationModel)); print("Texture loaded: " .. tostring(locationTexture)); loadSkinnedZomboidModel("beard_" .. string.lower(name), locationModel, locationTexture ); end end Events.OnGameBoot.Add(loadTGModel); With the above code more hair models can be added to the table loadTable2. Down below, where it says locationTexture, that can be changed to load multiple textures. But for the sake of testing this out I had it only load my current model's texture. Hope this helps.
  9. tommysticks

    Lua Method "loadSkinnedZomboidModel"

    Damn it all... as much as I want to be the first with a roll-out, I'll divulge what I've found here due to my time being drained by a baby these days... standby.
  10. tommysticks

    Lua Method "loadSkinnedZomboidModel"

    Holy fuck, this works. God bless your heart.
  11. Import male.txt or kate.txt, they include the skeleton. These are located in the base game model folder. So you’re going to need something to edit the .class file, I use JBE, I believe it is Java Byte Editor Open ModelManager On the left side drop down method, drop down create, and highlight the code folder With code highlighted, on the main screen click code editor Scroll down to the base game hair models, choose one and copy from line “aload_0” to line “pop” Paste and change the name of the old model to your new one. The name here has to match the name of your model. If it doesn’t, or you accidentally remove part of the old code, the game probably won’t load correctly. Good idea to make a backup of ModelManager. Pic for reference
  12. Import male.txt or kate.txt, they include the skeleton. On my phone, so this gonna take a minute to explain ModelManager.class
  13. No tutorial that I know of. Import the body so you have the skeleton and so you can fit the hair to bob or kate. Weight the entire hair 100% to the skull bone (or add other shit like a backpack and weight it to the spine) All hairs use the same texture, f_hair_white.png, so you can use that in blender to make the model look good on the texture when you unwrap it. Alternatively, you can add stuff to f_hair_white.png and have custom textures (which is what I've done for my models). Delete all unneeded bullshit like kate or bob's body. (this step is somewhat unnecessary if you know what you're doing in blender) Export. - I don't remember (because it's been a while) but the model probably has to be formatted like this: hair_yournamehere.txt The file won't load if it's in a mod folder, so it has to go in the base game model folder: G:\Games\SteamApps\common\ProjectZomboid\media\models Edit ModelManager.class. Some things I commonly forget or fuck up: Not exporting the hair with a skeleton Not weighting the hair Not UV unwrapping the model Hope this helps Also, it looks like some of those steps might not be necessary if the new loader works. I haven't fucked around with it yet.
  14. Well FMA, this might work.
  15. I've fucked around with this shit a whole lot. Does loadModel work now? You can change hairstyle with this: getPlayer():getDescriptor():setHair("F_Hair_Bob_White"); ...but afaik there has never been a way to load weighted models with lua.