Raised This Month: $ Target: $400
 0% 

register_event no longer works w/textmsg on CZ


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-21-2004 , 18:12   register_event no longer works w/textmsg on CZ
Reply With Quote #1

OK basically whenever someone throws a grenade, you used to be able to catch the displaying of "throws a grenade", so you would know when one was thrown. Now you cannot since the update, this:

register_event("TextMsg","nade_thrown","bc"," 2&#Game_radio", "4&#Fire_in_the_hole")

no longer works correctly. Does anyone know of an alternative? Or does anyone know how I can catch what ALL the events are?

I tried this:

Code:
    register_event("TextMsg","display_message","a") public display_message(id){     new message[50],message2[50]     read_argv(1,message,49)     read_argv(2,message2,49)     client_print(id,print_chat,"[DEBUG] message read: %s; %s",message,message2) }

but it didn't work. Any suggetsions?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-24-2004 , 10:51  
Reply With Quote #2

come on this is a big deal, some1 has to know something
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 06-24-2004 , 12:18  
Reply With Quote #3

See if Condition-Zero is using a new message. Use metamod to get a list of all the messages.
__________________
egg
BAILOPAN is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 06-24-2004 , 13:23  
Reply With Quote #4

type "meta game" in console and post results here ...
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-25-2004 , 21:05  
Reply With Quote #5

Quote:
19:58:55 meta game
19:58:56 GameDLL info:
name: czero
desc: cs_i386.so (override)
gamedir: /home/cz_server/hlds_l/czero
dll file: cs_i386.so
dll pathname: /home/cz_server/hlds_l/czero/dlls/cs_i386.so
Game registered user msgs: msgid size
VoiceMask 64 8
ReqState 65 0
CurWeapon 66 3
Geiger 67 1
Flashlight 68 2
FlashBat 69 1
Health 70 1
Damage 71 12
Battery 72 2
Train 73 1
HudTextPro 74 -1
HudText 75 -1
SayText 76 -1
TextMsg 77 -1
WeaponList 78 -1
ResetHUD 79 0
InitHUD 80 0
ViewMode 81 0
GameTitle 82 1
DeathMsg 83 -1
ScoreAttrib 84 2
ScoreInfo 85 9
TeamInfo 86 -1
TeamScore 87 -1
GameMode 88 1
MOTD 89 -1
ServerName 90 -1
AmmoPickup 91 2
WeapPickup 92 1
ItemPickup 93 -1
HideWeapon 94 1
SetFOV 95 1
ShowMenu 96 -1
ScreenShake 97 6
ScreenFade 98 10
AmmoX 99 2
SendAudio 100 -1
RoundTime 101 2
Money 102 5
ArmorType 103 1
BlinkAcct 104 1
StatusValue 105 -1
StatusText 106 -1
StatusIcon 107 -1
BarTime 108 2
ReloadSound 109 2
Crosshair 110 1
NVGToggle 111 1
Radar 112 7
Spectator 113 2
VGUIMenu 114 -1
TutorText 115 -1
TutorLine 116 -1
TutorState 117 -1
TutorClose 118 -1
AllowSpec 119 1
BombDrop 120 7
BombPickup 121 0
ClCorpse 122 -1
HostagePos 123 8
HostageK 124 1
HLTV 125 2
SpecHealth 126 1
ForceCam 127 3
ADStop 128 0
ReceiveW 129 1
CZCareer 130 -1
CZCareerHUD 131 -1
ShadowIdx 132 4
TaskTime 133 4
Scenario 134 -1
BotVoice 135 2
BuyClose 136 0
SpecHealth2 137 2
BarTime2 138 4
ItemStatus 139 1
Location 140 -1
BotProgress 141 -1
Brass 142 -1
Fog 143 7
ShowTimer 144 0
81 game user msgs
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-25-2004 , 21:49  
Reply With Quote #6

perhaps its HudTextPro

I'll do some research and let u guys know what I find out, thanks for the info
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-25-2004 , 23:32  
Reply With Quote #7

do you guys know how I can print out (for textmsg) all of the textmsgs that happen for a certain user? (I was going to try it in cs then in cz). And I can't figure out how to code it, when I try to print them as strings I just get some weird numbers.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 06-26-2004 , 00:29  
Reply With Quote #8

One thing you can do is use the register_message natives to catch all the data about a message, so for each message you can get:

The number of arguments passed
The argument types pased
The containing data of the argument

With more accuracy than the normal read_data

Or maybe I don't understand what you want
__________________
egg
BAILOPAN is offline
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 06-26-2004 , 05:48  
Reply With Quote #9

Code:
GameDLL info:
        name: cstrike
        desc: zbotcz.dll (override)
     gamedir: E:\HLServer/cstrike
    dll file: zbotcz.dll
dll pathname: e:/hlserver/cstrike/dlls/zbotcz.dll
Game registered user msgs:    msgid   size
   VoiceMask                    64      8
   ReqState                     65      0
   CurWeapon                    66      3
   Geiger                       67      1
   Flashlight                   68      2
   FlashBat                     69      1
   Health                       70      1
   Damage                       71     12
   Battery                      72      2
   Train                        73      1
   HudTextPro                   74     -1
   HudText                      75     -1
   SayText                      76     -1
   TextMsg                      77     -1
   WeaponList                   78     -1
   ResetHUD                     79      0
   InitHUD                      80      0
   ViewMode                     81      0
   GameTitle                    82      1
   DeathMsg                     83     -1
   ScoreAttrib                  84      2
   ScoreInfo                    85      9
   TeamInfo                     86     -1
   TeamScore                    87     -1
   GameMode                     88      1
   MOTD                         89     -1
   ServerName                   90     -1
   AmmoPickup                   91      2
   WeapPickup                   92      1
   ItemPickup                   93     -1
   HideWeapon                   94      1
   SetFOV                       95      1
   ShowMenu                     96     -1
   ScreenShake                  97      6
   ScreenFade                   98     10
   AmmoX                        99      2
   SendAudio                   100     -1
   RoundTime                   101      2
   Money                       102      5
   ArmorType                   103      1
   BlinkAcct                   104      1
   StatusValue                 105     -1
   StatusText                  106     -1
   StatusIcon                  107     -1
   BarTime                     108      2
   ReloadSound                 109      2
   Crosshair                   110      1
   NVGToggle                   111      1
   Radar                       112      7
   Spectator                   113      2
   VGUIMenu                    114     -1
   TutorText                   115     -1
   TutorLine                   116     -1
   TutorState                  117     -1
   TutorClose                  118     -1
   AllowSpec                   119      1
   BombDrop                    120      7
   BombPickup                  121      0
   ClCorpse                    122     -1
   HostagePos                  123      8
   HostageK                    124      1
   HLTV                        125      2
   SpecHealth                  126      1
   ForceCam                    127      3
   ADStop                      128      0
   ReceiveW                    129      1
   CZCareer                    130     -1
   CZCareerHUD                 131     -1
   ShadowIdx                   132      4
   TaskTime                    133      4
   Scenario                    134     -1
   BotVoice                    135      2
72 game user msgs

It s normal to have 2 CZ ? in a CS server ?
CZCareer 130 -1
CZCareerHUD 131 -1
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-26-2004 , 11:17  
Reply With Quote #10

Quote:
Originally Posted by BAILOPAN
One thing you can do is use the register_message natives to catch all the data about a message, so for each message you can get:

The number of arguments passed
The argument types pased
The containing data of the argument

With more accuracy than the normal read_data

Or maybe I don't understand what you want
yep thats exactly what I want, thanks for the help

Working on it now (after I eat breakfast)
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
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:37.


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