• ttt item wait until round start to be picked up
    4 replies, posted
Hello, I've made a health vial thingy that can restore health, just like any other on any fps deathmatch ever. However, it can be picked up before a round starts, but that doesn't matter because your health gets reset anyway on a round start. Is there a way to wait until round start and then do a thing via lua? or like a check or something? Thanks, Me
I think I got it but I would also need a way for them to randomly spawn around the map. Below is what I have for the spawning when the round starts. But right now they don't really have a location to spawn :p if Server then hook.Add("TTTBeginRound") function ENT:Initialize() self.Entity:SetModel( "models/healthvial.mdl" ) self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) self.Entity:SetUseType( SIMPLE_USE ) local phys = self.Entity:GetPhysicsObject() if ( phys:IsValid() ) then phys:Wake() end end
instead of doing that, just make it so that if the round is preparing, you can't use it. i feel like that would make a lot more sense and be more "balanced" i guess
Spawn entity in safe spot randomly on map or use spawnpoints instead.
Thanks that's also a good post. I think I'll go with a standard spawning due to it being a health item and I'd like it to be on specific places on the map but if I do have an item that is quite powerful and I want it to spawn randomly, that'd be a sweet way to do it.
Sorry, you need to Log In to post a reply to this thread.