Results 1 to 5 of 5

Thread: Problem with RadiusDamage ,does not show that I kill the enemy...

  1. #1
    Private
    Join Date
    Aug 2012
    Posts
    78
    Thanks
    20
    Thanked 10 Times in 5 Posts

    Problem with RadiusDamage ,does not show that I kill the enemy...

    Why using radiusDamage does not show that I killed, a player?

    PHP Code:
    radiusDamage(place22020020player); 
    <origin> = place
    <range> = 220
    <max damage> = 200
    <min damage> = 20
    [attacker] = player

    player = players[i]

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    RadiusDamage: Does damage to all damageable objects within a given radius. The amount of damage is linear according to how close the object is to the radius.
    ~zeroy.com/script

    For damage "player-player" use: self FinishPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime );
    P.S. You can find it in gametype.gsc
    Last edited by Jeplaa; 13th February 2013 at 13:50.

  3. The Following 2 Users Say Thank You to Jeplaa For This Useful Post:

    Killer.Pro (13th February 2013),kung foo man (13th February 2013)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Moczulak View Post
    Why using radiusDamage does not show that I killed, a player?

    PHP Code:
    radiusDamage(place22020020player); 
    <origin> = place
    <range> = 220
    <max damage> = 200
    <min damage> = 20
    [attacker] = player

    player = players[i]
    There is no argument for attacker/player. These are the only arguments radiusdamage() accepts:

    From the Official COD2 Script Documentation (no need to link to Zeroy, who has plagiarized IW's documentation and passes it off as his own):

    Code:
    radiusdamage(<origin>, <range>, <max damage>, <min damage>)

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

    Jeplaa (13th February 2013)

  6. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    What happens when you call radiusdamage ON a player? Wouldnt it make that player the attacker/inflicter?

  7. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by IzNoGoD View Post
    What happens when you call radiusdamage ON a player? Wouldnt it make that player the attacker/inflicter?
    Well, unless you can carry the player argument through the function, it wouldn't mean jack shit, would it? And in the case of radiusdamage() there is no such argument parameter, so the game engine would never know who the attacker/inflicter is.

    In a multiplayer environment, it is always better to use finishPlayerDamage() if you are wanting to register damage on a player. Obviously because this function has an inflicter parameter. However, it is limited in that it can 1) only be used in MP, and does not work in SP; and 2) it does not do damage on world entities - only players. If you want to destroy a S&D objective for example, it is useless. In that case, it is better to use radiusdamage().
    Last edited by Tally; 13th February 2013 at 18:15.

Posting Permissions

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