Results 1 to 8 of 8

Thread: [CoD2] Weapon hit range

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Nov 2019
    Posts
    22
    Thanks
    2
    Thanked 3 Times in 3 Posts
    I didn't replaced the whole Callback_PlayerDamage function. Just added your code. But this is always displays "distance so long" no matter how far I shoot the enemy player.

    I want to display the "distance so long" message if the player shoot away more than 1 meter from itself no matter if hitting the enemy or no.

    One more question: Why I can't hit custom models? I can hit and kill the default american,german,russian, etc models... but if the enemy is choose for ex.: a brush model (e.g. brush_egypt_desert_1) I can't hit and kill him.

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by Toxys View Post
    I didn't replaced the whole Callback_PlayerDamage function. Just added your code. But this is always displays "distance so long" no matter how far I shoot the enemy player.

    I want to display the "distance so long" message if the player shoot away more than 1 meter from itself no matter if hitting the enemy or no.

    One more question: Why I can't hit custom models? I can hit and kill the default american,german,russian, etc models... but if the enemy is choose for ex.: a brush model (e.g. brush_egypt_desert_1) I can't hit and kill him.
    do you need the distance between the player and the bullet point of impact?

    I don't know why this code doesn't work, how are you testing? maybe you always shoot at a distance of more than 1000?

    do test script for value 100-250. bcs 1 - very small value: maybe it's impossible distance between players.
    ?? 1meter != 1 from distance(); ??
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Tags for this Thread

Posting Permissions

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