Post: MW3 GSC and PlayerCMD Functions Thread
04-30-2015, 02:41 PM #1
lutsch1234
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I f you want to know how to call These mods check out my other Thread right here
=> You must login or register to view this content.

Hopefully you post usefull functions to so i can add them to the thread Smile
So the this is what i got "working" by now
The Magic Bullets are working but something makes them Buggy i dont know what it is maybe someone of you now the Problem.
The Bulles are working for a few sec but then the bullets get stuck.
What you Need:
G_Client and GetEntity
    int G_client(int clientIndex)   {return 0x110A280 + ( clientIndex * 0x3980 ); }
int GetEntity(int clientIndex) {return 0xFCA280 + ( clientIndex * 0x280 ); }

Angles to Forward
    double cos1(double x)
{
double t = -x*x / 2;
double sum = 1 + t;
for (int i = 2; i<20; ++i)
{
t *= -x*x / (2 * i*(2 * i - 1));
sum += t;
}
return sum;
}
double sin1(double x)
{
double term = x;
double sum = x;
for (int n = 1; n<10; ++n)
{
term *= x*x / (2 * n * (2 * n + 1));
sum += n % 2 ? -term : term;
}
return sum;
}
float* AnglesToForward(float* Angels, float* Origin, float diff = 200)
{
float PI = 3.1415926535897931;
float num = ((float)sin1((Angels[0] * diff) - (num * num)));
float num1 = (float)sqrt(((diff * diff) - (num * num)));
float num2 = ((float)sin1((Angels[1] * PI) / 180)) * num1;
float num3 = ((float)cos1((Angels[1] * PI) / 180)) * num1;
float forward[3] = { Origin[0] + num3, Origin[1] + num2, Origin[2] = num };
return forward;
}

getViewAngles
    float* getViewAngles(int client)
{
return ReadFloat(0x0110a3d8 + (client * 0x3980), 3);
}


TagOrigin
    float* Gscr_TagOrigin(int client, const char* tag)
{
Scr_AddString(tag);
Scr_SetNumParam1(1);
((float(*)(int))&ParseAddr(0x001AD570))(client << 16);
}

MagicBullet
    void Scr_MagicBullet(int ClientID, const char* Bullet, float* Start, float* End){
Scr_AddEntity(GetEntity(ClientID));
Scr_AddVector(End);
Scr_AddVector(Start);
Scr_AddString(Bullet);
Scr_SetNumParam1(4);
((void(*)())&ParseAddr(0x0019F6F0))();
/* call function for Scr_Notiy
float* start[18];
start[0] = Gscr_TagOrigin(0, "j_head");
float* end[18];
end[0] = AnglesToForward(getViewAngels(0), Gscr_TagOrigin(0, "tag_weapon_left"));
Scr_MagicBullet(0, "ac130_105mm_mp", start[0], end[0]);
*/
}

Invisible
    void GSC_Hide(int client)
{
((void(*)(int))&ParseAddr(0x001B2F3C))(client << 16);
}

Anti Quit
    void AntiQuit(int client)
{
((void(*)(int))&ParseAddr(0x00180C1Cool Man (aka Tustin))(client << 16);
}

PrintInBold
    void Playercmd_iprintinbold(int client, const char* msg)
{
Scr_AddString(msg);
Scr_SetNumParam1(1);
((void(*)(int))&ParseAddr(0x00180CCCool Man (aka Tustin))(client << 16);
}

PrintIn
    void  PlayerCmd_iprintln(int client, const char* msg)
{
Scr_AddString(msg);
Scr_SetNumParam1(1);
((void(*)(int))&ParseAddr(0x00180D74))(client << 16);
}

Clone Player
    void PlayerCMD_ClonePlayer(int client)
{
((void(*)(int))&ParseAddr(0x00180F4Cool Man (aka Tustin))(client << 16);
}

Suicide
    void PlayerCMD_Suicide(int client)
{
((void(*)(int))&ParseAddr(0x00180B5Cool Man (aka Tustin))(client << 16);
}

Set Rank only for Ingame
    void PlayerCMD_setRank(int client, const char* rank)//Working InGame only
{
Scr_AddString(rank);
Scr_SetNumParam(1);
((void(*)(int))&ParseAddr(0x00181B10))(client << 16);
}

Take all Weapons
    void PlayerCMD_TakeAllWeapons(int client)
{
((void(*)(int))&ParseAddr(0x00178B54))(client << 16);
}

No Recoil
    void PlayerCMD_NoRecoil(int client)
{
((void(*)(int))&ParseAddr(0x0017F4CC))(client << 16);
}

Get Teams
    void GSC_objective_playerenemyteam(int client)//Cant get called in OnPlayerSpawned without Verification or host client number //Maybe not working 
{
((void(*)(int))&ParseAddr(0x001BA3CCool Man (aka Tustin))(client << 16);
}
void GSC_objective_playerteam(int client)//Cant get called in OnPlayerSpawned without Verification or host client number // Maybe not working
{
((void(*)(int))&ParseAddr(0x001BA3CCool Man (aka Tustin))(client << 16);
}

Restart
    void GSC_Restart(int client)
{
((void(*)(int))&ParseAddr(0x001B3924))(client << 16);
}

Disable Weapons and Enable Weapons
    void PlayerCmd_disableweapons(int client)
{
((void(*)(int))&ParseAddr(0x0017BC10))(client << 16);
}
void PlayerCmd_Enableweapons(int client)
{
((void(*)(int))&ParseAddr(0x0017BC8C))(client << 16);
}
Last edited by lutsch1234 ; 04-30-2015 at 03:10 PM.

The following 4 users say thank you to lutsch1234 for this useful post:

kiwi_modz, LBK, mrdarkblue, zRayz-

The following user groaned lutsch1234 for this awful post:

FusionIsDaName
04-30-2015, 02:43 PM #2
Originally posted by lutsch1234 View Post
I f you want to know how to call These mods check out my other Thread right here
=> You must login or register to view this content.

So the this is what i got "working" by now
The Magic Bullets are working but something makes them Buggy i dont know what it is maybe someone of you now the Problem.
The Bulles are working for a few sec but then the bullets get stuck.
What you Need:
G_Client and GetEntity
    int G_client(int clientIndex)   {return 0x110A280 + ( clientIndex * 0x3980 ); }
int GetEntity(int clientIndex) {return 0xFCA280 + ( clientIndex * 0x280 ); }
[/spoiler*]


Nice release dude Happy Well done! Happy
04-30-2015, 02:48 PM #3
lutsch1234
Bounty hunter
Originally posted by Haxman2580 View Post
Nice release dude Happy Well done! Happy

Do you know how to do a Spoiler im toooo dump cant find it the thread will get to Long if i do it like this
04-30-2015, 02:52 PM #4
Like this

[/spoiler(]) Remove Brackets

The following user thanked Coffee Bean for this useful post:

lutsch1234
05-23-2015, 12:42 PM #5
With Clone Player, calls were first time make the Clone.
But, SPRX freezes at the moment of the calling.
What will i do?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo