Thread: Just an idea.

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    ccman32's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Germany
    Posts
    1,266
    Reputation
    325
    Thanks
    21,619
    My Mood
    Devilish
    Quote Originally Posted by zZzeta/S View Post
    You could copy the method the detector uses.

    You storing the player's position vector
    you do the same for the enemy's
    Then you can calculate the deltA between them. So for e.x

    if(fpDelta == 15)
    PlaySound(...);
    Would be cool as long as PlaySound works for you

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

    zZzeta/S (07-24-2013)

  3. #17
    Artificial intelligence is no match for natural stupidity
    Premium Member
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,402
    Reputation
    156
    Thanks
    5,950
    My Mood
    Cool
    It is just by calculating the vectors of your player position and the enemy player position .. and make the certain distance between them , If he been near to you .. play sound or do the stuff you want.
    If the facts don't fit the theory, change the facts.
    Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
    Try not to become a man of success, but rather try to become a man of value.
    You have to learn the rules of the game. And then you have to play better than anyone else.

    -Albert Einstein



  4. #18
    AVA PlaYe's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    delusional
    Posts
    1,484
    Reputation
    36
    Thanks
    3,702
    Quote Originally Posted by zZzeta/S View Post
    You could copy the method the detector uses.

    You storing the player's position vector
    you do the same for the enemy's
    Then you can calculate the deltA between them. So for e.x

    if(fpDelta == 15)
    PlaySound(...);
    you could just store the player's position and call the function ''x'' depending on how close are/is the player

    except that, not worth at all, would be more annoying that anything else
    I Miss the old time


  5. #19
    oXParadoxXo's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Who cares? ಠ_ಠ B̸̼̲͓̹̼͙̥̞̭̌̽
    Posts
    509
    Reputation
    10
    Thanks
    274
    My Mood
    Dead
    Quote Originally Posted by Flengo View Post
    Quote Originally Posted by Flengo View Post
    Originally Posted by zZzeta/S


    ^^ Wrote the first thing i could remember. Partyed to hard last night^^
    Still drunk from the party?


    Still drunk from the party?

    Partied* not partyed Mr. Editor
    Well if you REALLY wanna get technical, he also misspelled 'too.' LOL, I'm a stickler for grammar.


    If you need my help, feel free to contact me. Unless you're gonna beg- then leave me alone. ಠ_ಠ



     
     
    Quote Originally Posted by ccman32 View Post
    Stop begging, it's just annoying.
     
    Best quotes ever:
    Quote Originally Posted by Jabberwo0ck View Post
    Hell no. They don't ban me. Simply because they can't.
    Quote Originally Posted by RageSmirk View Post
    I'm above the law.
    Quote Originally Posted by Antipathy View Post
    You should all have knife-fights to the death to amuse me.
    Quote Originally Posted by Dave84311 View Post
    PEW PEW ALLAHU ACKBAR
    Quote Originally Posted by zZzeta/S View Post
    It should be allowed to brutally murder people if their iq is below 10...

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Just an Idea
    By robdux in forum Combat Arms Hacks & Cheats
    Replies: 9
    Last Post: 08-02-2009, 05:25 AM
  2. Just An Idea...
    By ulipo in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 07-20-2009, 02:54 AM
  3. Just an idea LOOOOK
    By Nuked2DaBone in forum CrossFire Hacks & Cheats
    Replies: 7
    Last Post: 07-17-2009, 04:08 PM
  4. Just an idea...
    By SgtMiclan in forum General
    Replies: 2
    Last Post: 04-10-2009, 06:53 AM
  5. Just an Idea
    By carbon23 in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 11-06-2008, 11:46 PM