Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Revival of the few zombie during the reboot.

  1. #11
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Back in 2006 I did an "infected" gametype called Hitman for COD2. Basically, the gametype starts with 1 hitman, 1 commander, and the rest are guards who are supposed to protect the commander. As the hitman kills the guards, they turn into hitmen. Change the name "Hitman" to "infected" and you have the same thing: as the "infected" (= hitman) kills the guards, they become infected themselves. So, the gametype uses a method to increase the size of hitmen/infected exponentially. Which is what you were looking for.

    Download Hitman gametype for COD2 here:

    http://callofduty.filefront.com/file...Gametype;68302
    Last edited by Tally; 12th February 2013 at 13:40.

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (12th February 2013)

  3. #12
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    PHP Code:
    ******* script runtime error *******
    pair 'undefined' and 'undefined' has unmatching types 'undefined' and 'undefined': (file 'files/zom.gsc'line 2107)
    if (
    a.lastTimeOfDeathAsHunter b.lastTimeOfDeathAsHunter)

    I have error.. idk why... ;/

  4. #13
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Instead of player.lastDeath write now:

    PHP Code:
    if (player.pers["team"] == "allies")
        
    player.lastTimeOfDeathAsHunter getTime(); 
    BTW dont forget to set player.lastTimeOfDeathAsHunter = 0 in callback_playerconnect(), otherwise it will crash with undefined-int-unmatching-type-error.
    timescale 0.01

  5. #14
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    Add to Callback_PlayerConnect:

    PHP Code:
    if (player.pers["team"] == "allies")
        
    player.lastTimeOfDeathAsHunter getTime(); 
    ??

  6. #15
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    No, that goes to Callback_PlayerKilled().




    Callback_PlayerConnect: player.lastTimeOfDeathAsHunter = 0;
    timescale 0.01

  7. #16
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    I kill the last hunter, do i not turn into the hunter ;/
    The last hunter is killed, the team moved ,, axis'', then after a while ,,allies''.

    How to repair ?

  8. #17
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Did you commented your old hunter-becomes-zombie-logic out?
    timescale 0.01

  9. #18
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts
    How do I comment on this?

  10. #19
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Its different for every zombie-mod, most ppl put the logic directly in Callback_PlayerKilled (who wrote that part for your mod?).
    timescale 0.01

  11. #20
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    I hate to rain on anyone's parade, but if you can't script, or are very new to it, you should not be attempting to write a whole zombie gametype script. You should learn to walk before you try to run. Gametypes are for the very advanced only.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •