Post: Some G_AddEvent Research
05-23-2014, 08:04 PM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

Here's something i worked today because it looked interesting. You can do some cool fun funcs out of it ^^
You will need a working RPC!

This is the Function we will use (it is all clients)

    0x001BC608 - G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)


Your C# Script could look like this:
    public void G_AddEvent(Int32 clientIndex, Int32 event, UInt32 eventParam)
{
Call(0x001BC608, 0x1319800 + (0x280 * clientIndex), event, eventParam);
}


Here is everything i found ^^

If i didn't wrote any Value then it doesnt matter what eventParam!
    
0x20 - Value doesnt matter = Shoots gun without loosing ammo?
0x22 - Value doesnt matter = Sound of Ammo
0x25 - Same as 0x22
0x33 - Value 1-5 tested = Different Melee Sounds
0x34 - Knifing Sound
0x36 - 0x39 = same as 0x20/0x22
0x40 - Earthquake with sound
0x41 + 0x42 - Earthquake without sound
0x46 - Weird Bullet sound
0x49/0x50 - same as 0x46
0x52 - got with different values following Error (Unknown EV_Bullet) ?!?
------------------------------------------------------------------------------------------
0x53 - Play Effect

Values/evenParams:
1 - Some weird shit look your self with Value 1 tested (this spawned on the my position) (https://i.gyazo.com/adcf8237c119cf3b1a5b6e5a3ba61fb1.png)
2 - Freeze
0x06 = Force Stand
0x07 = Force Stance
0x08 = Force Crouch
0x09 - doesnt matter value = Display "Stand not possible"
0x0B = Explosion without Sound
0x10 = Makes fire on the ground for like 2 secs
0x11 = Smoke
0x15 = Explosion Effect
0x20 = Can't define the effect lel
0x21 = Weird Smoke effect (would be nice in combination with earthquake)
0x22 = Fire Effect
0x26 = Bigger Explosion but without Sound
0x27 = Small flash effect
0x3A = same as 0x15
0x3B = Same as 1
0x3C = Explosion Effect but looks abit different (https://gyazo.com/90bbf77f00807c6d1e17495f2e8e7dd7)
0x3D = Small Explosion
0x3E = Flash Effect
0x35 = Another nice explosion (https://gyazo.com/5e02f9f70da6aa9a65ab1f8b74f37f8a)
0x36 = Earth "jump" from the ground
0x37 = Same as 0x36 but with sound
0x47 = Another Explosion (https://gyazo.com/4cd90b62933c6174ca09d51cc1f8d5c4)
0x52 = Awesome Nuke Effect (https://gyazo.com/6cdfa4eaa098a6e0ada6c0080f97a0bc)
0x53 = Explosion with Smoke (you cant see anything for some secs)
0x54 = Spawns Smoke on your Aimposition
0x55 = Fog Effect on your Aimposition
0x5B = Freeze
0x5C = Freeze
---------------------------------------------------------------------------------------

0x62 - Rumble Controller (strength varies depending on the value, Min Val = 1, Max Val = 0x13)
0x63/0x64/0x65 - Rumble but none index worked i guess you need G_RumbleIndex...
0x6A - doesnt matter value = Display "no special grenades left"
0x6B - doesnt matter value = Display "too close to the target"
0x6D - doesnt matter value = Display "need to aim"
0x6E - Freeze


Here just examples with my sample c# Script

Play Rumble (put in a btn or whatever)
G_AddEvent(0, 0x62, 0x10);

Example to do the Effect Stuff (wtih the Nuke effect here)
G_AddEvent(0, 0x53, 0x52); //0x53 is the event, 0x52 the eventParam (Effect Index) for the Nuke.

Hope you will enjoy it and i'll hope to see some stuff coming with it :yes:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to seb5594 for this useful post:

Azus, JLM, iNDMx, iTпDM, milky4444, John, Obris, SC58, VezahMoDz, Fatality
05-23-2014, 08:40 PM #2
iTпDM
Vault dweller
Nice , Thanks Seb5594 :yes:
05-23-2014, 08:49 PM #3
Originally posted by seb5594 View Post
Hey NGU,

Here's something i worked today because it looked interesting. You can do some cool fun funcs out of it ^^
You will need a working RPC!

This is the Function we will use (it is all clients)

    0x001BC608 - G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)


Your C# Script could look like this:
    public void G_AddEvent(Int32 clientIndex, Int32 event, UInt32 eventParam)
{
Call(0x001BC608, 0x1319800 + (0x280 * clientIndex), event, eventParam);
}


Here is everything i found ^^

If i didn't wrote any Value then it doesnt matter what eventParam!
    
0x20 - Value doesnt matter = Shoots gun without loosing ammo?
0x22 - Value doesnt matter = Sound of Ammo
0x25 - Same as 0x22
0x33 - Value 1-5 tested = Different Melee Sounds
0x34 - Knifing Sound
0x36 - 0x39 = same as 0x20/0x22
0x40 - Earthquake with sound
0x41 + 0x42 - Earthquake without sound
0x46 - Weird Bullet sound
0x49/0x50 - same as 0x46
0x52 - got with different values following Error (Unknown EV_Bullet) ?!?
------------------------------------------------------------------------------------------
0x53 - Play Effect

Values/evenParams:
1 - Some weird shit look your self with Value 1 tested (this spawned on the my position) (https://i.gyazo.com/adcf8237c119cf3b1a5b6e5a3ba61fb1.png)
2 - Freeze
0x06 = Force Stand
0x07 = Force Stance
0x08 = Force Crouch
0x09 - doesnt matter value = Display "Stand not possible"
0x0B = Explosion without Sound
0x10 = Makes fire on the ground for like 2 secs
0x11 = Smoke
0x15 = Explosion Effect
0x20 = Can't define the effect lel
0x21 = Weird Smoke effect (would be nice in combination with earthquake)
0x22 = Fire Effect
0x26 = Bigger Explosion but without Sound
0x27 = Small flash effect
0x3A = same as 0x15
0x3B = Same as 1
0x3C = Explosion Effect but looks abit different (https://gyazo.com/90bbf77f00807c6d1e17495f2e8e7dd7)
0x3D = Small Explosion
0x3E = Flash Effect
0x35 = Another nice explosion (https://gyazo.com/5e02f9f70da6aa9a65ab1f8b74f37f8a)
0x36 = Earth "jump" from the ground
0x37 = Same as 0x36 but with sound
0x47 = Another Explosion (https://gyazo.com/4cd90b62933c6174ca09d51cc1f8d5c4)
0x52 = Awesome Nuke Effect (https://gyazo.com/6cdfa4eaa098a6e0ada6c0080f97a0bc)
0x53 = Explosion with Smoke (you cant see anything for some secs)
0x54 = Spawns Smoke on your Aimposition
0x55 = Fog Effect on your Aimposition
0x5B = Freeze
0x5C = Freeze
---------------------------------------------------------------------------------------

0x62 - Rumble Controller (strength varies depending on the value, Min Val = 1, Max Val = 0x13)
0x63/0x64/0x65 - Rumble but none index worked i guess you need G_RumbleIndex...
0x6A - doesnt matter value = Display "no special grenades left"
0x6B - doesnt matter value = Display "too close to the target"
0x6D - doesnt matter value = Display "need to aim"
0x6E - Freeze


Here just examples with my sample c# Script

Play Rumble (put in a btn or whatever)
G_AddEvent(0, 0x62, 0x10);

Example to do the Effect Stuff (wtih the Nuke effect here)
G_AddEvent(0, 0x53, 0x52); //0x53 is the event, 0x52 the eventParam (Effect Index) for the Nuke.

Hope you will enjoy it and i'll hope to see some stuff coming with it :yes:


always wondered what this function could do, dankz 4 sharing Smile
05-24-2014, 02:52 PM #4
SC58
Former Staff
Originally posted by seb5594 View Post
Hey NGU,

Here's something i worked today because it looked interesting. You can do some cool fun funcs out of it ^^
You will need a working RPC!

This is the Function we will use (it is all clients)

    0x001BC608 - G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)


Your C# Script could look like this:
    public void G_AddEvent(Int32 clientIndex, Int32 event, UInt32 eventParam)
{
Call(0x001BC608, 0x1319800 + (0x280 * clientIndex), event, eventParam);
}


Here is everything i found ^^

If i didn't wrote any Value then it doesnt matter what eventParam!
    
0x20 - Value doesnt matter = Shoots gun without loosing ammo?
0x22 - Value doesnt matter = Sound of Ammo
0x25 - Same as 0x22
0x33 - Value 1-5 tested = Different Melee Sounds
0x34 - Knifing Sound
0x36 - 0x39 = same as 0x20/0x22
0x40 - Earthquake with sound
0x41 + 0x42 - Earthquake without sound
0x46 - Weird Bullet sound
0x49/0x50 - same as 0x46
0x52 - got with different values following Error (Unknown EV_Bullet) ?!?
------------------------------------------------------------------------------------------
0x53 - Play Effect

Values/evenParams:
1 - Some weird shit look your self with Value 1 tested (this spawned on the my position) (https://i.gyazo.com/adcf8237c119cf3b1a5b6e5a3ba61fb1.png)
2 - Freeze
0x06 = Force Stand
0x07 = Force Stance
0x08 = Force Crouch
0x09 - doesnt matter value = Display "Stand not possible"
0x0B = Explosion without Sound
0x10 = Makes fire on the ground for like 2 secs
0x11 = Smoke
0x15 = Explosion Effect
0x20 = Can't define the effect lel
0x21 = Weird Smoke effect (would be nice in combination with earthquake)
0x22 = Fire Effect
0x26 = Bigger Explosion but without Sound
0x27 = Small flash effect
0x3A = same as 0x15
0x3B = Same as 1
0x3C = Explosion Effect but looks abit different (https://gyazo.com/90bbf77f00807c6d1e17495f2e8e7dd7)
0x3D = Small Explosion
0x3E = Flash Effect
0x35 = Another nice explosion (https://gyazo.com/5e02f9f70da6aa9a65ab1f8b74f37f8a)
0x36 = Earth "jump" from the ground
0x37 = Same as 0x36 but with sound
0x47 = Another Explosion (https://gyazo.com/4cd90b62933c6174ca09d51cc1f8d5c4)
0x52 = Awesome Nuke Effect (https://gyazo.com/6cdfa4eaa098a6e0ada6c0080f97a0bc)
0x53 = Explosion with Smoke (you cant see anything for some secs)
0x54 = Spawns Smoke on your Aimposition
0x55 = Fog Effect on your Aimposition
0x5B = Freeze
0x5C = Freeze
---------------------------------------------------------------------------------------

0x62 - Rumble Controller (strength varies depending on the value, Min Val = 1, Max Val = 0x13)
0x63/0x64/0x65 - Rumble but none index worked i guess you need G_RumbleIndex...
0x6A - doesnt matter value = Display "no special grenades left"
0x6B - doesnt matter value = Display "too close to the target"
0x6D - doesnt matter value = Display "need to aim"
0x6E - Freeze


Here just examples with my sample c# Script

Play Rumble (put in a btn or whatever)
G_AddEvent(0, 0x62, 0x10);

Example to do the Effect Stuff (wtih the Nuke effect here)
G_AddEvent(0, 0x53, 0x52); //0x53 is the event, 0x52 the eventParam (Effect Index) for the Nuke.

Hope you will enjoy it and i'll hope to see some stuff coming with it :yes:


Nice Cool Man (aka Tustin), inb4 ported to every other cod by some one lmao

The following 3 users say thank you to SC58 for this useful post:

VezahMoDz
05-24-2014, 05:14 PM #5
OMFG Seb! Gasp This Is Fucking Amazing! Thanks A Bunch Bro! <3
05-25-2014, 10:12 AM #6
VezahMoDz
Do a barrel roll!
Originally posted by seb5594 View Post
Hey NGU,

Here's something i worked today because it looked interesting. You can do some cool fun funcs out of it ^^
You will need a working RPC!

This is the Function we will use (it is all clients)

    0x001BC608 - G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)


Your C# Script could look like this:
    public void G_AddEvent(Int32 clientIndex, Int32 event, UInt32 eventParam)
{
Call(0x001BC608, 0x1319800 + (0x280 * clientIndex), event, eventParam);
}


Here is everything i found ^^

If i didn't wrote any Value then it doesnt matter what eventParam!
    
0x20 - Value doesnt matter = Shoots gun without loosing ammo?
0x22 - Value doesnt matter = Sound of Ammo
0x25 - Same as 0x22
0x33 - Value 1-5 tested = Different Melee Sounds
0x34 - Knifing Sound
0x36 - 0x39 = same as 0x20/0x22
0x40 - Earthquake with sound
0x41 + 0x42 - Earthquake without sound
0x46 - Weird Bullet sound
0x49/0x50 - same as 0x46
0x52 - got with different values following Error (Unknown EV_Bullet) ?!?
------------------------------------------------------------------------------------------
0x53 - Play Effect

Values/evenParams:
1 - Some weird shit look your self with Value 1 tested (this spawned on the my position) (https://i.gyazo.com/adcf8237c119cf3b1a5b6e5a3ba61fb1.png)
2 - Freeze
0x06 = Force Stand
0x07 = Force Stance
0x08 = Force Crouch
0x09 - doesnt matter value = Display "Stand not possible"
0x0B = Explosion without Sound
0x10 = Makes fire on the ground for like 2 secs
0x11 = Smoke
0x15 = Explosion Effect
0x20 = Can't define the effect lel
0x21 = Weird Smoke effect (would be nice in combination with earthquake)
0x22 = Fire Effect
0x26 = Bigger Explosion but without Sound
0x27 = Small flash effect
0x3A = same as 0x15
0x3B = Same as 1
0x3C = Explosion Effect but looks abit different (https://gyazo.com/90bbf77f00807c6d1e17495f2e8e7dd7)
0x3D = Small Explosion
0x3E = Flash Effect
0x35 = Another nice explosion (https://gyazo.com/5e02f9f70da6aa9a65ab1f8b74f37f8a)
0x36 = Earth "jump" from the ground
0x37 = Same as 0x36 but with sound
0x47 = Another Explosion (https://gyazo.com/4cd90b62933c6174ca09d51cc1f8d5c4)
0x52 = Awesome Nuke Effect (https://gyazo.com/6cdfa4eaa098a6e0ada6c0080f97a0bc)
0x53 = Explosion with Smoke (you cant see anything for some secs)
0x54 = Spawns Smoke on your Aimposition
0x55 = Fog Effect on your Aimposition
0x5B = Freeze
0x5C = Freeze
---------------------------------------------------------------------------------------

0x62 - Rumble Controller (strength varies depending on the value, Min Val = 1, Max Val = 0x13)
0x63/0x64/0x65 - Rumble but none index worked i guess you need G_RumbleIndex...
0x6A - doesnt matter value = Display "no special grenades left"
0x6B - doesnt matter value = Display "too close to the target"
0x6D - doesnt matter value = Display "need to aim"
0x6E - Freeze


Here just examples with my sample c# Script

Play Rumble (put in a btn or whatever)
G_AddEvent(0, 0x62, 0x10);

Example to do the Effect Stuff (wtih the Nuke effect here)
G_AddEvent(0, 0x53, 0x52); //0x53 is the event, 0x52 the eventParam (Effect Index) for the Nuke.

Hope you will enjoy it and i'll hope to see some stuff coming with it :yes:


People might wanna use this for the Effects Winky Winky :
    0x01BE720 - G_EffectIndex(const char *name)
Example:
int effect = RPC.CallFunc(0x01BE720, "props/cash_player_drop");
G_AddEvent(0, 0x53, (uint)effect); //Moneyrain Happy

Also here are some effects to test it Smile You must login or register to view this content.
05-26-2014, 01:43 PM #7
Shark
Retired.
Originally posted by seb5594 View Post
Hey NGU,

Here's something i worked today because it looked interesting. You can do some cool fun funcs out of it ^^
You will need a working RPC!

This is the Function we will use (it is all clients)

    0x001BC608 - G_AddEvent(gentity_s *ent, int event, unsigned int eventParm)


Your C# Script could look like this:
    public void G_AddEvent(Int32 clientIndex, Int32 event, UInt32 eventParam)
{
Call(0x001BC608, 0x1319800 + (0x280 * clientIndex), event, eventParam);
}


Here is everything i found ^^

If i didn't wrote any Value then it doesnt matter what eventParam!
    
0x20 - Value doesnt matter = Shoots gun without loosing ammo?
0x22 - Value doesnt matter = Sound of Ammo
0x25 - Same as 0x22
0x33 - Value 1-5 tested = Different Melee Sounds
0x34 - Knifing Sound
0x36 - 0x39 = same as 0x20/0x22
0x40 - Earthquake with sound
0x41 + 0x42 - Earthquake without sound
0x46 - Weird Bullet sound
0x49/0x50 - same as 0x46
0x52 - got with different values following Error (Unknown EV_Bullet) ?!?
------------------------------------------------------------------------------------------
0x53 - Play Effect

Values/evenParams:
1 - Some weird shit look your self with Value 1 tested (this spawned on the my position) (https://i.gyazo.com/adcf8237c119cf3b1a5b6e5a3ba61fb1.png)
2 - Freeze
0x06 = Force Stand
0x07 = Force Stance
0x08 = Force Crouch
0x09 - doesnt matter value = Display "Stand not possible"
0x0B = Explosion without Sound
0x10 = Makes fire on the ground for like 2 secs
0x11 = Smoke
0x15 = Explosion Effect
0x20 = Can't define the effect lel
0x21 = Weird Smoke effect (would be nice in combination with earthquake)
0x22 = Fire Effect
0x26 = Bigger Explosion but without Sound
0x27 = Small flash effect
0x3A = same as 0x15
0x3B = Same as 1
0x3C = Explosion Effect but looks abit different (https://gyazo.com/90bbf77f00807c6d1e17495f2e8e7dd7)
0x3D = Small Explosion
0x3E = Flash Effect
0x35 = Another nice explosion (https://gyazo.com/5e02f9f70da6aa9a65ab1f8b74f37f8a)
0x36 = Earth "jump" from the ground
0x37 = Same as 0x36 but with sound
0x47 = Another Explosion (https://gyazo.com/4cd90b62933c6174ca09d51cc1f8d5c4)
0x52 = Awesome Nuke Effect (https://gyazo.com/6cdfa4eaa098a6e0ada6c0080f97a0bc)
0x53 = Explosion with Smoke (you cant see anything for some secs)
0x54 = Spawns Smoke on your Aimposition
0x55 = Fog Effect on your Aimposition
0x5B = Freeze
0x5C = Freeze
---------------------------------------------------------------------------------------

0x62 - Rumble Controller (strength varies depending on the value, Min Val = 1, Max Val = 0x13)
0x63/0x64/0x65 - Rumble but none index worked i guess you need G_RumbleIndex...
0x6A - doesnt matter value = Display "no special grenades left"
0x6B - doesnt matter value = Display "too close to the target"
0x6D - doesnt matter value = Display "need to aim"
0x6E - Freeze


Here just examples with my sample c# Script

Play Rumble (put in a btn or whatever)
G_AddEvent(0, 0x62, 0x10);

Example to do the Effect Stuff (wtih the Nuke effect here)
G_AddEvent(0, 0x53, 0x52); //0x53 is the event, 0x52 the eventParam (Effect Index) for the Nuke.

Hope you will enjoy it and i'll hope to see some stuff coming with it :yes:


heuheuh nice seb, this is also what I used in this to play the rumble, I couldnt really find anything useful in bo2 with G_AddEvent... You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo