Raised This Month: $ Target: $400
 0% 

Descriptive 'Fire in the hole!' (+colors)


Post New Thread Reply   
 
Thread Tools Display Modes
v3n1n
Junior Member
Join Date: Nov 2006
Location: France
Old 11-15-2006 , 11:53   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #11

Okay - would be a little better plugin if you can make it fully compatible ^^ ( )

+4 !
__________________
[ Me this ♫♪ ! ][ 84 ][NJS4E]

Last edited by v3n1n; 11-15-2006 at 11:58.
v3n1n is offline
SylverRat
Junior Member
Join Date: Jul 2006
Location: Pécs, HUN, EU
Old 11-16-2006 , 06:57   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #12

for czero:

old:
PHP Code:
#define RADIOTEXT_MSGARG_NUMBER 5
enum radiotext_msgarg {
    
RADIOTEXT_MSGARG_PRINTDEST 1,
    
RADIOTEXT_MSGARG_CALLERID,
    
RADIOTEXT_MSGARG_TEXTTYPE,
    
RADIOTEXT_MSGARG_CALLERNAME,
    
RADIOTEXT_MSGARG_RADIOTYPE,
}
new const 
g_required_radiotype[] = "#Fire_in_the_hole"
new const g_radiotext_template[] = "%s (RADIO): Fire in the hole!" 
new:
PHP Code:
#define RADIOTEXT_MSGARG_NUMBER 6
enum radiotext_msgarg {
    
RADIOTEXT_MSGARG_PRINTDEST 1,
    
RADIOTEXT_MSGARG_CALLERID,
    
RADIOTEXT_MSGARG_TEXTTYPE,
    
RADIOTEXT_MSGARG_CALLERNAME,
    
RADIOTEXT_MSGARG_LOCATION,
    
RADIOTEXT_MSGARG_RADIOTYPE,
}
new const 
g_required_radiotype[] = "#Fire_in_the_hole"
new const g_radiotext_template[] = "%s @ %s (RADIO): Fire in the hole!" 
old:
PHP Code:
get_msg_arg_string(RADIOTEXT_MSGARG_CALLERNAMEargsizeof arg 1)
pos += formatex(text[pos], sizeof text pos 1g_radiotext_templatearg
new:
PHP Code:
static arg1[32]
static 
arg2[32
PHP Code:
get_msg_arg_string(RADIOTEXT_MSGARG_CALLERNAMEarg1sizeof arg1 1)
get_msg_arg_string(RADIOTEXT_MSGARG_LOCATIONarg2sizeof arg2 1)
pos += formatex(text[pos], sizeof text pos 1g_radiotext_templatearg1arg2
i hope, this helps...

edit: put static args' outside the for loop... it will work... sorry for bad code, dunno what messed up while copy-pasting...
__________________
CSCZ fan

Last edited by SylverRat; 11-17-2006 at 03:02.
SylverRat is offline
v3n1n
Junior Member
Join Date: Nov 2006
Location: France
Old 11-16-2006 , 16:48   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #13

Gonna give a try with this and I'll tell you..

Thx

edit : 5 warning in compilation and look like this in the game :

[IMG]http://img457.**************/img457/2865/looktb6.th.jpg[/IMG]
__________________
[ Me this ♫♪ ! ][ 84 ][NJS4E]

Last edited by v3n1n; 11-16-2006 at 16:57.
v3n1n is offline
SylverRat
Junior Member
Join Date: Jul 2006
Location: Pécs, HUN, EU
Old 11-17-2006 , 02:55   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #14

For me, this works fine...
no errors, warnings...
here is the full plugin, try this. if still errors, dunno...
(using mm-p 1.19p28, amxx 1.76b, cscz steam & non-steam)

note: description and credits removed from file, but provided link to this thread...

edit: read my previous post...
edit2: old version, removed...
__________________
CSCZ fan

Last edited by SylverRat; 11-17-2006 at 12:42.
SylverRat is offline
Old 11-17-2006, 04:12
VEN
This message has been deleted by VEN.
VEN
Veteran Member
Join Date: Jan 2005
Old 11-17-2006 , 04:56   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #15

Quote:
Player @ middle (radio) "Fire in the hole!"
The problem with CS:CZ version is that "Player" can't be colored with the team color unless your custom description match the same color or non-red/blue.

Last edited by VEN; 11-17-2006 at 05:00.
VEN is offline
SylverRat
Junior Member
Join Date: Jul 2006
Location: Pécs, HUN, EU
Old 11-17-2006 , 12:40   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #16

new version... (i guess i have too much time these days...)
one prob:
if u throw flash, playername will be gray. if HE, name will be red. if smoke, team color... (as VEN mentioned above...)
can't fix this. any ideas? anybody?

* changed g_radiotext_template, now using the built-in #Game_radio msg...
* Location determination changed
* it should work for 1.6 & cz aswell...

i hope, this works now...
Attached Files
File Type: sma Get Plugin or Get Source (syr_descriptive_fire_in_the_hole_CZ_2.sma - 1701 views - 3.6 KB)
__________________
CSCZ fan

Last edited by SylverRat; 11-18-2006 at 03:57.
SylverRat is offline
Bonesmuggler
Member
Join Date: Sep 2005
Old 11-20-2006 , 21:53   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #17

how do I make it so that after the fire in the hole [grenade] , that it prints it in gold like the rest of the line. It's nice to see what kind of grenade that is thrown but some players say the red and green are kinda distracting.

Thanks
Bones
Bonesmuggler is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-21-2006 , 05:31   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #18

In the source code replace
Code:
new const g_grenade_desccolor[_:grenade] = {     COLOR_RED,     COLOR_GRAY,     COLOR_GREEN }
with
Code:
new const g_grenade_desccolor[_:grenade] = {     COLOR_NORMAL,     COLOR_NORMAL,     COLOR_NORMAL }
Then compile and reinstall the plugin.
VEN is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-21-2006 , 05:36   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #19

you know what would make this the greatest plugin of all time ? replaceing the "fire in the hole" sounds with descriptive sounds. like "Watch Out Flash!" or "HE!" . You could make the sound file your self in a music creator.
The Specialist is offline
Send a message via AIM to The Specialist
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 11-22-2006 , 14:46   Re: Descriptive 'Fire in the hole!' (+colors)
Reply With Quote #20

Can we actually change the "Fire In The Hole" colour?
P4rD0nM3 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 12:27.


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