Dont return false with getplayerbyid, return undefined instead and check for that.
Dont getplayername or exists by id, just use the getplayerbyid function with proper checks.
fixchatargs is...
Dont return false with getplayerbyid, return undefined instead and check for that.
Dont getplayername or exists by id, just use the getplayerbyid function with proper checks.
fixchatargs is...
the script is working.
im using libcod.
when players type !fps command the getfps() gets the actual fps value of the player or self.
What i am asking is if this is the way to do it, and what...
Nice, seems legit, byte compare for 1.3:
arr[0x33ee0] = 0xc3; // was 0x51
arr[0x33fc2] = 0x90; // was 0xe8
arr[0x33fc3] = 0x90; // was 0x09
arr[0x33fc4] = 0x90; // was 0xcb
...
There is a patched version of 1.3 that solves the black screen issue: https://cdn.discordapp.com/attachments/825622671172829184/877008965496623164/Call.of.Duty.2.Custom.Patch-LuKeStorm.rar
I haven't...
COD2:
objective_add
Objective_Team
Objective_Delete
Probablly to do with either g_floodprotect (set to zero), or (in cod2 at least) with the spamdelay set inside the quickmessages.gsc file. In cod2 it's set to 2 seconds, like so:
}
self...
Maybe they are watching other players? I remember seeing in CoD1, in the S&D gametype, when you die and watch another player, instead of your ping, it is displayed
And when out of 10 person one is...
Some people fake bot pings, maybe it's their "random" function?
Do they play like real humans?
If you use WinSCP and Notepad++, the file is send to the server automatically. Then, as you say, restarting the map is rather quick to see the changes.
But I also remember some tools for...
1. Run php script from gsc
2. Write in DataBase from .php
3. Read db-query in gsc
My example realisation:
1703
system libcod:
1704
You can try use return 1/0 or -1 in php script from...
system("php vpn.php "+self getIP()+" "+self.id);
<?php
$ip = $argv[1];
$id = $argv[2];
$ch = curl_init('http://proxycheck.io/v2/'.$ip.'?key=mykey&vpn=1&asn=1&risk=1');
curl_setopt($ch,...
i use too vpn api. Codextended .php + database mysql
I've got no clue what roundcam is.
1. set up initial alpha with .alpha
2. call fadeovertime(time_goes_here)
3. set new, desired alpha that should be faded towards
4. fadeovertime will do stuff in the background, as a separated...
Yes, use fadeovertime.
hud.alpha = 0;
hud fadeOverTime(1);
hud.alpha = 1;
Done.
Shouldn't matter. Have you checked from a spectator's point of view (hud element being on the spectatee aka player)?
I don't get what you're trying to do. If you're trying to edit which menu file gets shown to players, just do it through script. If you're trying to modify it globally, then why are you using self?...
It should be rather easy, simply note the numbers:
0, 45, 90, 135, 180, 225, 270, 315, 360 (same as 0)
And write down the corresponding degrees you see on the compass... after max 2/3 numbers...
The correct flag would be .archived, instead of .archive. Not sure about the default, but judging by your results it might be set to true by default (since you set a different variable)
1698
You can write a function like:
checkAngles() {
while (1) {
players = getentarray("player", "classname");
for (i = 0; i < players.size; i++) {
The last number is already the euler angle, in CoD2 it seems to be 360 - theGivenLastNumber.
Based on the image in CoD1, it could be -161 + 360 + 40 = 239
the .archive flag is set to true/false on hud elements to instruct the engine to make them visible in the killcam if set to true. As a side-effect (maybe an intended effect?) it also makes it visible...
use getplayerangles() from a script (gsc) file. player.angles is kinda bugged and only returns a nonzero value for the [1] index.
Also, in cod2 /viewpos returns your left/right angle as the final...
Why are you storing client hud elems in level variables?
No need, the script would be server-side only.