Jump to content

Pudge

Member
  • Posts

    11
  • Joined

  • Last visited

Reputation Activity

  1. Spiffo
    Pudge got a reaction from Cory in A code that displays the ammounts of zombies killed by a specific player   
    Hellow, im trying to create a little mod, but im having big troubles. 
     
    is there a way to display something like : " You killed 103 zombies on this server" whenever a player type "/kills"
     
    can a cop server store this info like:
     
    Plaayer_SteamID6655656_Zombie_killed = 25 
    Player_SteamID23423443_Zombie_Killed = 45
    Player_SteamID3412111123_Zombie_Killed = 34
     
    Does Some cool guy know how to do this? 
     
     
  2. Like
    Pudge reacted to Brybry in Some basics - generating random numbers and killing the player   
    for 1) try ZombRand I think it's 0 to max with max being exclusive (so for example 9 would return 0 to 8, or maybe 8.9999...I don't remember)
    not sure for the other though
    Edit:
    maybe try player:inflictWound(BodyLocation.Hand,1.0,false,10.0) or player:getBodyDamage():AddDamage(BodyDamage:ToIndex(BodyPartType.Hand_R), damage)or maybe something like player:getBodyDamage():DamageFromWeapon(InventoryItemFactory.createItem("Base.Shotgun")) if you flat out want to kill them then I think you'd want setOverallBodyHealth and/or setHealth
  3. Like
    Pudge reacted to ProjectSky in (SOLVED) Lose or gain body weight   
    Try this:
    function Itemcool(self) local pwg = self.getNutrition():getWeight() if pwg >= 40 then --Weight value: Min 35, Max inf. self.getNutrition():setWeight(pwg - 5) end end  
  4. Like
    Pudge reacted to Damien Darkside in (SOLVED) Lose or gain body weight   
    If you have "nutrition" on, you will gain or lose weight based on positive or negative calorie counts.

    I stick it near 80, which is default if you have nutrition off.
×
×
  • Create New...