I have been working quite a while on a server side mod with some custom maps as part of a pack for TF2. I have been doing this alone so it is slow moving, but its getting there.
Now heres the question. Its more for coding, but I figured you guys know the entities better than anyone. I want to create custom powerups, and since all of the maps for the pack are custom, I figured perhaps I can just insert an entity at the places I want to have the powerups, then use the code to modify those entities when the maps loaded.
Here are the 2 Ideas:
1) Have one entity that all powerups use, and differentiate them by name. So on map load, the plugin checks for an entity we will call "Health Boost". If it finds it, it sets all the properties such as the model for it to use, etc.
2) Have seperate entities, one for each type of powerup, then just search for that entity type on map load.
Basically I need the help of you guys finding a good pre-existing entity to use, since you cannot really create a completely new customized entity. The more that is already incorporated into the entity the better, so I don't have to make extremely heavy server side modifications for it to work.
The biggest issue I see is it needs to be able to be picked up on contact. When a player walks over it, I will need to destroy the entity, put it on a X second timer before respawning it, and then give the powerup ability to that player. I thought about using an ammo box, or health pack, or something and just changing the model, but I am looking for an entity that would work better for this (I dont think those would).
Any help you guys can provide would be excellent!
*EDIT*
Would Prop_Physics be the best for this? After looking at the valve wiki for a while, it looks like I could set the model for it, start it asleep, then use the "OnAwakened" property to destroy the entity and place the powerup on the player.
Now heres the question. Its more for coding, but I figured you guys know the entities better than anyone. I want to create custom powerups, and since all of the maps for the pack are custom, I figured perhaps I can just insert an entity at the places I want to have the powerups, then use the code to modify those entities when the maps loaded.
Here are the 2 Ideas:
1) Have one entity that all powerups use, and differentiate them by name. So on map load, the plugin checks for an entity we will call "Health Boost". If it finds it, it sets all the properties such as the model for it to use, etc.
2) Have seperate entities, one for each type of powerup, then just search for that entity type on map load.
Basically I need the help of you guys finding a good pre-existing entity to use, since you cannot really create a completely new customized entity. The more that is already incorporated into the entity the better, so I don't have to make extremely heavy server side modifications for it to work.
The biggest issue I see is it needs to be able to be picked up on contact. When a player walks over it, I will need to destroy the entity, put it on a X second timer before respawning it, and then give the powerup ability to that player. I thought about using an ammo box, or health pack, or something and just changing the model, but I am looking for an entity that would work better for this (I dont think those would).
Any help you guys can provide would be excellent!
*EDIT*
Would Prop_Physics be the best for this? After looking at the valve wiki for a while, it looks like I could set the model for it, start it asleep, then use the "OnAwakened" property to destroy the entity and place the powerup on the player.
Last edited: