Replacing stock models

Discussion in 'Mapping Questions & Discussion' started by Pocket, Oct 16, 2016.

  1. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Can it be done? So far, I've had only partial success in doing so. I'm using custom item pickups in my map, and in order to prevent the health packs from being overridden by the Halloween style ones, I tried copypasting them into the props_halloween folder and saving them with the same filenames as the stock models. They showed up where I expected them to be in Hammer, but in game, everything was normal. I thought maybe packing them was the key, so I tried that. No dice.

    Surely this is a thing you can do somehow. What am I missing?
     
  2. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Update: I occurred to me why you normally wouldn't want this: If your custom model has a different collision mesh than the default, it could cause weird glitching. Still, a packed model wouldn't have that problem and that's not working either. Any ideas for how I might be able to work around this?
     
  3. Powerlord

    Powerlord L3: Member

    Messages:
    124
    Positive Ratings:
    59
    Health and ammo packs have an extra property to set a custom model, which should ignore any of the holiday overrides.

    Don't use the normal model properties on those as it doesn't work.

    Edit: I don't know what its property name is in Hammer, but its KeyValues key is "powerup_model"
    Edit 2: See also this thread
     
    Last edited: Oct 19, 2016
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Not sure what you think you mean, but the Model attribute that has a dropdown in Smart Edit is the same as powerup_model. And no, it doesn't stay when you turn on Halloween mode.