This is a good question, there are some tutorial how to do that?
Type: Posts; User: Toxys
This is a good question, there are some tutorial how to do that?
Hello,
How can I do a custom command for setting client's cvar without libcod (or if it's necessary then with libcod)? setcvar("test", "1") which is not an rcon / openscritmenu command just for...
Ummm , I added the playlocalsound in sd.gsc into spawnPlayer() function so that's must being called when player spawned... after the playlocalsound I wrote iprintlnBold("Music playing") and that's...
I didn't hear any sound...
I did check... I added these lines to .csv:
test_music,1,music/music1.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local
test_music,2,music/music2.mp3,,,,,,,,music,streamed,,,,all_mp,,,,,,local...
... I talking about random sounds in the whole topic. I don't want to just play one sound... That's why I need to use random() because I will add about 5-6 sounds and want to play randomly from that...
Thank you for your reply,
Okay but I still don't know how to play these sounds randomly... I know I need these functions: self playLocalSound("music1") , random in the gsc where I want to play the...
How can I play random music? I know I need to define the .mp3 files which I want to play in the soundaliases/iw_soun2.csv, I want to play to all players at the same time but once so I need to add...
Yes I know there is no 100% security, but not everyone look into the codes, etc... so this minimal security will be ok.
Well I set sv_allowdownload to 0, so the players can download only through...
No, I want to protect a mod with hide a code in some gsc in that way...
So the code would check if the server ip (where is the mod) is matches with the ip address in the txt on a webserver (ex.:...
I have 2 questions:
- Can I get the current server's ip address from a GSC file somehow?
- If so, can I read a file from external site and check if the ip address in that file is the same as the...
Yes, but it can be done because I saw it on some other servers... or they changed the bullet of e.g.: kar98k to a rocket launcher projectile and that's why they can kill those models?
Look at this...
No, I tested with different distances and always got that message.
Why I can't kill players with custom models? I mean if a player choose a custom model from the menu e.g: a brush (for ex.: brush_egypt_desert_1) I can't hit and kill him.
I read in some thread...
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...
I don't set the model at spawn as I said this script is setting the model when I click on a button in the menu... a .menu file handling the setmodel or I'm wrong?
execKey "a" { play...
I have a mod which set the player's model to custom models if you select that in the menu
An example from the ui_mp/objects1.menu
execKey "a" { play "mouse_click"; scriptMenuResponse...
I need to set this in for ex.: sd.gsc right?
I changed the Callback_PlayerDamage function to this but it doesn't seem to work. A little modification about my question: I wan't to print "distance...
Yes, I saw all of them but I want to activate once after useButtonPressed and not just the "change weapon" method I want to give at least 400x speed just for 10 seconds and the player can't cancel...
Ummm sadly I don't using libcod yet. But I trying to figure out.
It seems to work fine but I'm not sure that's the right way and if I'm die while sprinting then I have infinite sprint so the...
How can I change the player's speed if he press F key? I know how to detect if player pressed F but I can't change the player's speed:
self endon("disconnect");
while(1)
{
if(self...
Hi,
How can I set "kar98k"'s hit range? Is this enough if I set in eg.: weapons/kar98k_mp maxDamageRange?
If the player's hit range > 2000 then print a text to the screen: "The hit range was...