Results 1 to 6 of 6

Thread: Damage trigger & grenade

  1. #1
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts

    Damage trigger & grenade

    Hi,

    i made a botzom for a year and ever since a problem annoys me; I placed trigger_damages on the map and linked to the bots with script (=hitbox). It works fine, except for grenades. I'm throwing grenades all day next to the bots, but it wont hurt them. Knows somebody why? But if i dont link the hitboxes, the triggers get hits from grenades... In Radiant there is nothing checked in the entity window, so i have no ideas.

    Randall

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    - you can check for enableGrenadeTouchDamage() or some similar sounding functions
    - in radiant, there are some checkboxes for flags, arent they? maybe you can trailnerror with them abit

    otherwise its sounding like a bug inthe cod2 engine... unfortunately

  3. #3
    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
    With the setAlive-function in libcod I've never had problems with nades, maybe you want to switch? Then you also don't need hurt-triggers anymore and that makes stock-maps with bots possible. Also the collision detection for xmodels is way more precise.
    timescale 0.01

  4. #4
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    I already have a server and dont want to pay for another one with libcod.
    The hitboxes look like:
    trigger_damage linked to a brushmodel (for collision)
    and brushmodel is linked to the bots

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts

  6. #6
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    I tried it, its only enable to hit the trigger by throwing the grenade in. But funny

Posting Permissions

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