Jump to content

Zorgman

Members
  • Posts

    256
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Zorgman

  1. I'd use Photoshop. Open the big picture and overlay one of the fragments. Create a selection frame based on the fragment and use that to copy parts of the big map into new images. Make sure you set the same resolution.
  2. Looks like you're checking the root element for the 'zombie' attribute and weapon. You should instead check the attacker and alter the health of the source (that's the damaged player). Is this a special type of zombie that you try to set up? Because otherwise the 'zombie' resource has a function to amplify the zed damage, you only need to change the value there.
  3. Hi, Check the wiki for the parameters for onPlayerSpawn: player team is the fifth, so we have: function makeZombie(x,y,z,rot,team) if getTeamName(team) == "Infected" then setElementData(source, "zombie", true) end end addEventHandler("onPlayerSpawn", getRootElement(), makeZombie) Also make sure this script is server side. Cheers
  4. Hi, The 'attack code' is not necessary here. The "zombie" element data filters out non-valid targets, assuming you use a derivate of Slothman's zombies. I banged my head hard against a similar team problem with my own project a while ago. getPlayerTeam returns the team element so it will never be equal with the "Infected" string and your char never gets zombiefied. Use getPlayerTeam in conjunction with getTeamName in order to do your check. Let me know how it went if you'll find the time. Cheers
×
×
  • Create New...