Raised This Month: $ Target: $400
 0% 

Blocking Ts victory after bomb explosion.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-01-2007 , 19:56   Blocking Ts victory after bomb explosion.
Reply With Quote #1

I am using this to make the bomb explode when conditions occur:
Code:
set_pdata_float(ent, 100, 0.0);
which works perfectly, but I want to block the Terrorist victory, and make the CTs win if the bomb explodes. How cna I do this?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-02-2007 , 13:52   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #2

*bump* where ya at VEN I need your help
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-02-2007 , 15:47   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #3

I don't sure but i think that is impossible..
If you bomb the C4 the objective success and the T win...I think the only solution would be to hook the "terrorists win" text message and send your own "ct win" text message..and then remove one point from T team and add it to CT...
Any other ideas?

greetz regalis
PS: i love fakemeta
__________________
regalis is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-10-2007 , 23:31   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #4

um i have no idea how to do that regalis, but can you show me what you mean and I will try it out...
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-11-2007 , 10:27   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #5

Here are the messages i have logged with msglogging-plugin...
Code:
MessageBegin (SendAudio "100") (Destination "Broadcast<0>") (Args "3") (Entity "<NULL>") (Classname "<NULL>") (Netname "<NULL>") (Origin "0.000000 0.000000 0.000000")
Arg 1 (Byte "0")
Arg 2 (String "%!MRAD_terwin")
Arg 3 (Short "100")
MessageEnd (SendAudio "100")
MessageBegin (TextMsg "77") (Destination "All<2>") (Args "2") (Entity "<NULL>") (Classname "<NULL>") (Netname "<NULL>") (Origin "0.000000 0.000000 0.000000")
Arg 1 (Byte "4")
Arg 2 (String "#Terrorists_Win")
MessageEnd (TextMsg "77")
With this you can hook the Audio message:
Code:
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")

or for all end round szenarios the same time:
register_event("SendAudio", "end_round", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin", "2=%!MRAD_rounddraw")
The Textmessages can also be hooked but i don't want to do all the work

greetz regalis
__________________
regalis is offline
Old 06-11-2007, 11:08
Rolnaaba
This message has been deleted by Rolnaaba. Reason: its retarded
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-12-2007 , 18:02   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #6

sorry for the bump, but what about this?
Code:
#include <amxmodx> #include <fakemeta> new gMakeCtsWin = 0; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_message(get_user_msgid("SendAudio"), "Hook_SendAudio");     register_message(get_user_msgid("TextMsg"), "Hook_TextMsg"); } public bomb_exploding_function() {     gMakeCtsWin = 1;     set_pdata_float(ent, 100, 0.0); } public Hook_SendAudio() {     if(gMakeCtsWin) {         set_msg_arg_int(1, 1, 0);         set_msg_arg_string(2, "%!MRAD_ctwin");         set_msg_arg_int(1, 1, 100);                 gMakeCtsWin = 0;     }     return PLUGIN_CONTINUE; } public Hook_TextMsg() {     if(gMakeCtsWin) {         set_msg_arg_int(1, 1, 4);         set_msg_arg_string(2, "#Counter_Terrorist_Win");                 gMakeCtsWin = 0;     }     return PLUGIN_CONTINUE; }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-12-2007 , 19:20   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #7

What if you used VEN's force team win and then immediately after detonated the bomb?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-12-2007 , 20:52   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #8

cause I dont want to do all that team switching, I would rather fake the win

providing that the above snippette works, how do I add or subtract to a team's score?
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 06-12-2007 at 20:55.
Rolnaaba is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-12-2007 , 21:51   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #9

I don't know if there are any ways to internally change the team wins, you'd have to use the MemHack module or something. But you can change what it appears as with the TeamScore message.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 06-12-2007 , 22:38   Re: Blocking Ts victory after bomb explosion.
Reply With Quote #10

with the changing what appears, if a team wins for real, wouldnt that override my fake scoreboard and cause it to look stupid?
i.e.: I have it displaying 6, when the real score is 5, after a victory the score is upped to 6...will the display become 6 because a new scoremessage appeared or will it say 7?
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 10:35.


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