AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   register_event no longer works w/textmsg on CZ (https://forums.alliedmods.net/showthread.php?t=2953)

Geesu 06-21-2004 18:12

register_event no longer works w/textmsg on CZ
 
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?

Geesu 06-24-2004 10:51

come on this is a big deal, some1 has to know something

BAILOPAN 06-24-2004 12:18

See if Condition-Zero is using a new message. Use metamod to get a list of all the messages.

SidLuke 06-24-2004 13:23

type "meta game" in console and post results here ...

Geesu 06-25-2004 21:05

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

Geesu 06-25-2004 21:49

perhaps its HudTextPro

I'll do some research and let u guys know what I find out, thanks for the info

Geesu 06-25-2004 23:32

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.

BAILOPAN 06-26-2004 00:29

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 :)

sanaell 06-26-2004 05:48

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

Geesu 06-26-2004 11:17

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)


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

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