Results 1 to 2 of 2

Thread: Cod2 shoot through hitbox and weapon firetime

  1. #1
    Private
    Join Date
    Sep 2015
    Posts
    33
    Thanks
    0
    Thanked 21 Times in 13 Posts

    Cod2 shoot through hitbox and weapon firetime

    Hi,

    I am developing a zombie mod with bots, and want to set possible to shoot through a couple of zombies in one line.
    I would like to ask if anyone know about some trickery method for it or it can only be done with scripting (bullettrace).

    Other thing:
    With libcod, is it possible to set a weapon firetime / reloadtime to client?
    For example, if a player buy a perk, he can reload faster or shoot faster.

    Thanks,
    croni1012

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

    kubislav23 (4th March 2018)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    In the callback_playerdamage, run a bullettrace from the vPoint towards the vPoint+a scaled vDir, ignoring the current entity. When hitting a new ent, call a new instance of the callback_playerdamage on it. You could send a max depth with it too if you want.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (4th March 2018)

Posting Permissions

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