Raised This Month: $51 Target: $400
 12% 

player_say or player_chat ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cr3V3TT3
Senior Member
Join Date: Jul 2004
Location: V'dauban
Old 02-27-2005 , 07:55   player_say or player_chat ??
Reply With Quote #1

from source engine.gcf/root/hl2/resource/GameEvents.res
Quote:
"gameevents"
{
"team_info"
"team_score"
"player_team"
"player_class"
"player_death"
"player_hurt"
"player_chat"
"player_score"
"player_spawn"
"player_shoot"
"player_use"
"player_changename"
"game_newmap"
"game_start"
"game_end"
"round_start"
"round_end"
"game_message"
}
from counter-strike source shared.gcf/root/cstrike/resource/ModEvents.res
Quote:
"cstrikeevents"
{
"player_death"
"player_hurt"
"bomb_planted"
"bomb_defused"
"bomb_exploded"
"bomb_dropped"
"bomb_pickup"
"bomb_begindefuse"
"bomb_abortdefuse"
"hostage_follows"
"hostage_hurt"
"hostage_killed"
"hostage_rescued"
"hostage_rescued_all"
"vip_escaped"
"vip_killed"
"player_radio"
"bomb_beep"
"weapon_fire"
"weapon_fire_on_empty"
"weapon_reload"
"weapon_zoom"
"item_pickup"
"grenade_bounce"
"hegrenade_detonate"
"flashbang_detonate"
"smokegrenade_detonate"
"bullet_impact"
"player_footstep"
"player_jump"
"player_blind"
"player_falldamage"
"door_moving"
"break_breakable"
"break_prop"
"round_freeze_end"
"nav_blocked"
}
On CS : Source why the event when a player chat is player_say? shouldn' t it be player_chat?
Cr3V3TT3 is offline
Send a message via MSN to Cr3V3TT3
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 02-27-2005 , 08:29  
Reply With Quote #2

The serverevents.res file, which is common to all mods AFAIK, contains player_say:

Code:
	"player_say"
	{
		"userid"	"short"		// user ID on server
		"text"		"string"	// the say text
	}
No idea why they didn't just extend it, but the GameEvents.res file; I guess that's some SDK file or the HL2DM file, no idea where I have it from, seems to have a new one:
Code:
	"player_chat"				// a public player chat
	{
		"teamonly"	"bool"		// true if team only chat
		"userid" 	"short"		// chatting player 
		"text" 	 	"string"	// chat text
	}
__________________
hello, i am pm
PM is offline
Cr3V3TT3
Senior Member
Join Date: Jul 2004
Location: V'dauban
Old 02-28-2005 , 11:33  
Reply With Quote #3

Oki
So we can' t know if it' s a teamonly with player_say
Cr3V3TT3 is offline
Send a message via MSN to Cr3V3TT3
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-01-2005 , 13:05  
Reply With Quote #4

Quote:
Originally Posted by Cr3V3TT3
Oki
So we can' t know if it' s a teamonly with player_say
You can hook the say and say_team commands ;)
__________________
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 19:58.


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