http://killtube.org/showthread.php?1743-Problem-with-quot-if(getCvar-quot-function&p=8507&viewfull=1#post8507
http://killtube.org/showthread.php?1743-Problem-with-quot-if(getCvar-quot-function&p=8507&viewfull=1#post8507
Put the antiCheat() method in your gametype.gsc file and call self thread antiCheat(); on connect.
Here is a script I made for detecting name changers;
antiCheat()
{
self endon("disconnect");
if(isDefined(self.isBot))
return;
Wait 15-20 minutes and it should start showing up.
Nah, put in the full path.
#!/bin/bash
screen -S test /home/username/cod2/exectest.sh
That way the file can be executed from any directory without issues.
#!/bin/bash
while true
do
LD_LIBRARY_PATH=. LD_PRELOAD=/path/to/libcod/libcod2_1_0.so /path/to/exe/cod2_lnxded +set fs_basepath /path/to/directory +set fs_homepath /path/to/directory +set fs_game...
Max menuDef is 128
UI_AddMenu: Maximum number of menus 128 exceeded.
Maximum number models you can attach to an entity is 8.
Maximum number of turrets you can spawn is 32.
Also not sure...
Can't help you with Windows, but if you're trying to run a local server you can setup a ubuntu OS using VirtualBox and reconfig the local network so it will show on Windows.
if(getSubStr(response, 0, 1) == "x")
{
newresponse = getSubStr(response, 1, response.size);
return newresponse;
}
Usage:
player setWalkDir(string); //Set the walk direction for a player/bot. Very similar to moveTo() but accounts for collision!
player setWalkAngle(int); //Same as setWalkDir(string) but allows...
Would anyone like to have a function that moves a client based on wasd input?
For example
player playerMove("up");
wait 1;
player playerMove("down");
wait 1;
player playerMove("left");
Nevermind, with help from izno we've located an interesting function that sets player movements/shoot/ads/angles and successfully disabled the random movement for bots, which has fixed the legs/torso...
With this function you can force a player to play a specified animation using gsc. It can also be used to force a bot to change stance.
http://killtube.org/downloads/filthy_freak/setanim.gif
...
Success!
http://killtube.org/downloads/filthy_freak/setanim.gif
Just do what mitch said;
sendgameservercommand(self getentitynumber(), "h \"" + self.name + "^7: !help\"");
It is better anyway, because you can set a custom server name.
Example:
self.spectatorclient = player getentitynumber();
That what you looking for?
Look here for more info;
http://killtube.org/showthread.php?1926-Replicating-the-binoculars-bug&highlight=spectator
Nevermind, fixed it =)
Here are the correct asset manager settings;
http://killtube.org/downloads/filthy_freak/4.png
I just noticed an unused variable in int disablePickup(int a1, int a2, int a3).
Replace
int addrtype, ret = 0;
With
As requested, I have added disablePickup(bool) to libcod for download.
Here is disablePickup()
Usage example:
self disablePickup(true);
Also make sure to set disablePickup(bool) on player connect so it will reset properly.
I have made a method for detecting if a player is touching a weapon/turret/bombsite. Basically in any situation where the "Press (F) to use" dialog shows up.
Use example:
if ( player...
That fixed it, i'm starting to get the hang of c++ and pointers. Tyvm!
http://tom-crowley.co.uk/downloads/
"Tom FastFile Extractor"
Credits to IzNoGoD for walking me through this <3
Put these functions in libcod.cpp
int gsc_libcod_getAddressType(int id) {
extern int playerinfo_base;
extern int playerinfo_size;
...
Yep it was an error on my side not forcing the delay. Works fine except for the first bash like you described.