Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MasterChief55

Pages: 1 2 3 [4] 5 6 7 8 9 10
46
Add-Ons / Re: Killstreaks Mod!
« on: February 16, 2013, 12:16:45 PM »

47
Modification Help / Re: Sound files on /command
« on: February 01, 2013, 07:46:55 PM »
Well you have to create a datablock for the wav file. Then you reference that datablock in the serverplay3d. Ill write an example just this one time because you are starting and hopefully you will learn. Not always will you get a full example though
Code: [Select]
//Create the actual beep datablock
datablock AudioProfile(beepSound)
{
   filename    = "./Beep.wav";
   description = AudioClosest3d;
   preload = true;
};
//Create /beep
function servercmdbeep(%client)
{
   //Only play if the player is spawned
   if(isObject(%client.player))
      serverplay3d(beepSound,%client.player.getPosition());
}

It works! Thank you so much, Plornt! Cookies for you!
 :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie:

48
Modification Help / Re: Sound files on /command
« on: January 31, 2013, 10:51:16 PM »
Thank you, by the way. I'm not on my computer right now, and I don't have access
Until tomorrow, will try then.

49
Modification Help / Re: Sound files on /command
« on: January 31, 2013, 10:47:15 PM »
Code: [Select]
//Create the actual beep datablock
datablock AudioProfile(beepSound)
{
   filename    = "./Beep.wav";
   description = AudioClosest3d;
   preload = true;
};
//Create /beep
function servercmdbeep(%client)
{
   //Only play if the player is spawned
   if(isObject(%client.player))
      serverplay3d(beepSound,%client.player.getPosition());
}

Do I have to do this for every individual sound?

50
Modification Help / Re: Sound files on /command
« on: January 31, 2013, 10:08:17 PM »
Alright, I think it would help if I were to be more specific.

I'm trying to make a script that has multiple sounds, and people can play different sounds using a /command, and other people around the person who said it can hear it.
Like let's say I have three sounds in my Script_cmdsounds folder.

Beep.wav
Woop.wav
Honk.wav

Then of course, my description.txt, then my server.cs

My goal is to make it so ANYONE (not just me) can say /beep to play beep.wav, and so on.

And I have NO idea how to do this. If this has already been made, I sure couldn't find anything that works.



51
Modification Help / Re: Sound files on /command
« on: January 31, 2013, 09:50:54 PM »
This will play the actual beep at a certain position. Now all you have to do is throw this into a servercmd function and get a position from the client's player
Code: [Select]
serverplay3d(Beep_Checkout_Sound,%position);
Uh, thank you... but that's not exactly what I'm looking for

I'm a beginner at this, and I'd like to know where to start.

52
Modification Help / Sound files on /command [SOLVED]
« on: January 31, 2013, 08:57:37 PM »
So, I'm trying to make a mod (or find one if it's already made)
Where a certain sound is played when you type a /command

for example

If I had sound_beep

and I typed /beep

It would play sound_beep for the player.


I know it's a simple script, but I'm not exactly sure how to start.

Help appreciated!

53
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 04:37:29 PM »
Wait, it works now! YES!
Thank you so much everyone!

54
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 04:34:04 PM »
Local IP. You need to get rid of the 1 (your router) and replace it with 5 (your computer.)
And that's it?

55
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 02:53:56 PM »
Wait, do I put that under Local IP or Public Interface IP?

56
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 02:53:01 PM »
Use 192.168.0.5 as the IP address under the port forwarding options. I'd also recommend disabling your firewall against port 28000 while you're hosting so that it's not blocking any incoming connection attempts.

I already disabled my firewall completely while I'm fixing this, will try

57
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 02:42:49 PM »
Rrr, no modify...

I used the number after "Default Gateway"

which was 192.168.0.1, line 9

58
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 02:40:42 PM »
The external end port should be 28000 as well.
The local IP seems to be aimed towards what is a standard default gateway, are you sure that's your computer's private IP? To check on Windows, push Windows Key + R, type CMD. Type "ipconfig" in the command prompt and push enter. Post a picture, or look for the IP that has the first three octets as the default gateway.

Here's a pic of what happens when I type "ipconfig"


59
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 12:54:45 PM »
Here's a pic of my port

Did I do something wrong?

60
Help / Re: Problems Hosting Server... Help appreciated.
« on: January 21, 2013, 12:52:00 PM »
Uh... what.

Wait, when I port forwarded, it asked for UDP, TCP, or BOTH.

I chose both. So I DID port forward right?

Pages: 1 2 3 [4] 5 6 7 8 9 10