This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] Hi,
This code was taken from HPB_bot source code. ---------------------------------------------------------------------------------------- void FakeClientCommand(edict_t *pBot, char *arg1, char *arg2, char *arg3) { int length; memset(g_argv, 0, sizeof(g_argv)); isFakeClientCommand = 1; if ((arg1 == NULL) || (*arg1 == 0)) return; if ((arg2 == NULL) || (*arg2 == 0)) { length = sprintf(&g_argv[0], "%s", arg1); fake_arg_count = 1; } else if ((arg3 == NULL) || (*arg3 == 0)) { length = sprintf(&g_argv[0], "%s %s", arg1, arg2); fake_arg_count = 2; } else { length = sprintf(&g_argv[0], "%s %s %s", arg1, arg2, arg3); fake_arg_count = 3; } g_argv[length] = 0; // null terminate just in case strcpy(&g_argv[64], arg1); if (arg2) strcpy(&g_argv[128], arg2); if (arg3) strcpy(&g_argv[192], arg3); // allow the MOD DLL to execute the ClientCommand... ClientCommand(pBot); isFakeClientCommand = 0; } -------------------------------------------------------------------------------------------- all you would need to do is add that to your mod, dll etc and then you could call the function like this. FakeClientCommand(pEdict, "sv_gravity", "0", NULL); Any way hope it helps. also dont thank me, cause its botmans code. Good Luck! ----- Original Message ----- From: omar c To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 11:15 PM Subject: [hlcoders] Player alterations Greetings, How would one go about changing the various server commands, such as sv_friction and sv_gravity pertaining to a single player... i.e. a player gets hit and gravity,friction, and air resistance are all dropped to zero for him. Any help or suggestions are appreciated, Thanks in advance. - omar c - [shArd] nonereally http://www.shardsoftware.cjb.net [EMAIL PROTECTED] _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders --- --- [This E-mail has been scanned for viruses by BarrysWorld] -- --- --- [This E-mail has been scanned for viruses by BarrysWorld] _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders