Raised This Month: $ Target: $400
 0% 

Change model but not team in The Specialists Teamplay.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-20-2006 , 17:08   Re: Change model but not team in The Specialists Teamplay.
Reply With Quote #1

So you can restrict him from changing to anything but the specified model, but what changes him to the specified model in the first place?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 12-20-2006 , 18:22   Re: Change model but not team in The Specialists Teamplay.
Reply With Quote #2

Orangutanz that is not relevant to my goal. I want to change the players' models to something they should not be in the first place, and be able to change them to not one, but several models. This should be done without actually changing their "model" info, so the game thinks they are one model but they are another.

Avalanche, what do you think about the situation? I'm thinking that I should intercept the TeamInfo and TeamScore messages and resend them with the teamnames I want them to have. I tried to write it for TeamInfo, but I'm not doing it correctly, here's my attempt:

Code:
register_message(84, "TeamInfo_function") } public TeamInfo_function() {     new id = read_data(1)     new zom[32], hum[32]     get_cvar_string("zombiemodelcvar", zom, 31)     get_cvar_string("humanmodelcvar", hum, 31)     if(is_user_bot(id))     {         message_begin(MSG_ALL, 84, {0.0, 0.0, 0.0}, id)         write_byte(id)         write_string(zom)         message_end()     }     else     {         message_begin(MSG_ALL, 84, {0.0, 0.0, 0.0}, id)         write_byte(id)         write_string(hum)         message_end()     } }

I don't think id should be passed in message_begin(), but I don't know what should be.
stupok 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 22:24.


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