+ Reply to Thread
Results 1 to 15 of 18

  Click here to go to the first staff post in this thread.   Thread: F.E.A.R Sound ESP

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Babylon
    Posts
    1,520
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    Code:
    void CSound::MonitorSoundArray()
    {
    	for(int i = 0; i < vSound.size(); i++)
    	{
    		DWORD dwCurTime = GetTickCount();
    		if((dwCurTime - vSound[i].dwTime) > 2000)
    		{
    			vSound.erase(&vSound[i]);
    			i--;
    		}
    	}
    }

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    675
    Thanks
    4
    Thanked 30 Times in 16 Posts
    Rep Power
    73
    Quote Originally Posted by panzer View Post
    Code:
    void CSound::MonitorSoundArray()
    {
    	for(int i = 0; i < vSound.size(); i++)
    	{
    		DWORD dwCurTime = GetTickCount();
    		if((dwCurTime - vSound[i].dwTime) > 2000)
    		{
    			vSound.erase(&vSound[i]);
    			i--;
    		}
    	}
    }
    Thanks, thats what i intended to do

  3. #3
    Join Date
    Nov 2002
    Location
    Vault 13
    Posts
    2,235
    Thanks
    0
    Thanked 10 Times in 7 Posts
    Rep Power
    5
    Using a linked list would probably be faster

    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
    The last hurrah? Nah! I'd do it again
    The Rascal King behind the bars
    Or the one in front of them

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sound ESP
    By yNk´ in forum Tutorial Requests
    Replies: 1
    Last Post: 05-05-2006, 02:49 AM
  2. help with sound
    By griffin02 in forum Gold Source/HL1 Engine
    Replies: 16
    Last Post: 08-31-2005, 12:57 PM
  3. Updated Sound Sig (OGC Sound)
    By PizzaPan in forum Gold Source/HL1 Engine
    Replies: 8
    Last Post: 10-12-2004, 11:29 AM
  4. sound
    By blah22 in forum Beginner
    Replies: 1
    Last Post: 06-22-2004, 04:31 AM
  5. sound esp -> 1.6
    By devcode in forum Beginner
    Replies: 2
    Last Post: 06-03-2004, 10:05 AM

Posting Permissions

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