Raised This Month: $ Target: $400
 0% 

Modifying this gamemessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 09:49   Modifying this gamemessage
Reply With Quote #1

From JGHG trace :

Code:
L 09/08/2005 - 11:44:54: [JGHG Trace] {MessageBegin type=Explosion(92), dest=all_reliable(2), classname=nil netname=nil L 09/08/2005 - 11:44:54: [JGHG Trace] WriteCoord coord=-1773.436768 L 09/08/2005 - 11:44:54: [JGHG Trace] WriteCoord coord=2792.144531 L 09/08/2005 - 11:44:54: [JGHG Trace] WriteCoord coord=971.843384 L 09/08/2005 - 11:44:54: [JGHG Trace] WriteLong long=400 L 09/08/2005 - 11:44:54: [JGHG Trace] WriteByte byte=0 L 09/08/2005 - 11:44:54: [JGHG Trace] MessageEnd}

Allright, I want to change the color of this message(explosion).
The colors existing
Code:
0,1,2,3,4,5

WriteByte byte=0 represents that this message is blue.
How could I alter that without creating a new message on server to modify that?
So how should I modify it with register_message thingy?
Thnx
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 13:13  
Reply With Quote #2

C'mon, I'm sure its possible to modify it... please...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-12-2005 , 13:19  
Reply With Quote #3

There arent color values that can be set. So I dont think you can change the color
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 13:39  
Reply With Quote #4

Damn... Well, then, is it anyhow possible to change it at all, like getting the origin of it then creating red explosion while overriding other explosion?
I really need this...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-12-2005 , 13:49  
Reply With Quote #5

You need to get your own exploding model and use it i guess and then stop the first exploding one.
Or if you got a model that when used with the exploding one changes it so its red would possilbly work for you.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 13:58  
Reply With Quote #6

Ummm... First of all , this is sprite what I'm talking about.
The game has 6 sprites for this, white, blue , red ,yellow, green, pink...
The thingy defined in the last parametar of message is the color used for it, therefore, the sprite used.
0 - 5 is color indexs
So I guessed I could alter it...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 15:27  
Reply With Quote #7

I really think this can be modified since I saw closed-source plugins which manipulate with this message, modifying its size... Please
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 09-12-2005 , 16:00  
Reply With Quote #8

Check out register_message from the engine module
__________________
hello, i am pm
PM is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 09-12-2005 , 16:09  
Reply With Quote #9

I did... Appereantely, I can't do anything without knowing what to put in the function forwarded in register...
So I need this:

Code:
public plugin_init() { //... register_message( get_user_msgid("Explosion"), "ColorChange") return PLUGIN_CONTINUE } public ColorChange( WHAT_TO_PUT_HERE??!!?? ) { set_msg_arg_int(WHAT_TO_PUT_HERE??!!??, ARG_BYTE, 3 ) / set to yellow explosion return PLUGIN_CONTINUE }

That's the main reason I asked for help in this thread... I don't know what to do...
I guess this is the way...
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 09-12-2005 , 16:45  
Reply With Quote #10

Try this:
Code:
// In plugin_init: register_message( get_user_msgid("Explosion"), "ColorChange"); // then: public ColorChange(msg_id, msg_dest, msg_entity) {    set_msg_arg_int (5, 0, /* your new color index */); }
__________________
hello, i am pm
PM is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode