Hey i've noticed by looking at some .sma files that a couple of the characters reference to some sprites. I can't find these sprites anywhere, I'm thinking maybe they were neglected to be put with the characters to be installed in the first place. For example:
Quote:
|
gSpriteWhite = precache_model("sprites/white.spr");
|
That is a sprite in DareDevil, but its not on my server, on my clients, nor in the superhero zip file. Am I missing something???
The reason I ask is i was thinking about modifying Daredevil to show red ESP rings for T's and Blue ESP rings for CT's. I thought I could somehow insert an IF statment before the rgb values are called. Though I'm not sure what the IF would be, i'm not experienced in scripting. Would this work:
Quote:
public daredevil_esp( id )
{
new players[SH_MAXSLOTS];
new c;
new vec1[3];
new bool:sameTeam
new bool:showTeam
new bool:showEnemy
get_players(players,c,"a");
for(new i = 0; i < c; i++)
{
if(players[i]==id) continue;
get_user_origin(players[i],vec1,0);
if ( !is_user_alive(id) ) return
message_begin(MSG_ONE,SVC_TEMPENTITY,vec1,id)
write_byte( 21 );
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2] + 16);
write_coord(vec1[0]);
write_coord(vec1[1]);
write_coord(vec1[2] + 768 ) // test get_cvar_num("daredevel_radius") ); //1936
write_short( gSpriteWhite );
write_byte( 0 ); // startframe
write_byte( 1 ); // framerate
write_byte( 6 ); // 3 life 2
write_byte( 8 ); // width 16
write_byte( 1 ); // noise
write_byte( get_cvar_num("daredevil_bright") ); //brightness
write_byte( 0 ); // speed
sameTeam=( get_user_team(id)==get_user_team(pid) )
if ( (sameTeam && showTeam) || (!sameTeam && showEnemy) )
write_byte( 100 ); // r
write_byte( 100 ); // g
write_byte( 255 ); // b
message_end();
else
write_byte( 255 ); // r
write_byte( 100 ); // g
write_byte( 100 ); // b
message_end();
}
}
|
Any changes I need to make?
__________________