AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problems with 'TE_PLAYERATTACHMENT' (https://forums.alliedmods.net/showthread.php?t=189796)

Neeeeeeeeeel.- 07-11-2012 02:41

Problems with 'TE_PLAYERATTACHMENT'
 
Do not work...
PHP Code:

new sprite;

public 
plugin_precache( )
    
sprite precache_model"sprites/party_spr.spr" // I also tested with precache_generic

public party_spriteidpartyid )
{
    if( !
is_user_connectedid ) || !is_user_connectedpartyid ) )
        return;
    
    
message_beginMSG_ONE_UNRELIABLESVC_TEMPENTITY_id );
    
write_byteTE_PLAYERATTACHMENT );
    
write_bytepartyid );
    
write_coord);
    
write_shortsprite );
    
write_short99999 );
    
message_end( );
        
    
message_beginMSG_ONE_UNRELIABLESVC_TEMPENTITY_partyid );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord);
    
write_shortsprite );
    
write_short99999 );
    
message_end( );



Arkshine 07-11-2012 04:11

Re: Problems with 'TE_PLAYERATTACHMENT'
 
Is party_sprite() called at least ?

Neeeeeeeeeel.- 07-11-2012 23:29

Re: Problems with 'TE_PLAYERATTACHMENT'
 
Quote:

Originally Posted by Arkshine (Post 1747876)
Is party_sprite() called at least ?

Yes, I checked that.

Y060N 07-12-2012 00:28

Re: Problems with 'TE_PLAYERATTACHMENT'
 
Are you sure you are using the correct types of sprite?

yokomo 07-12-2012 00:42

Re: Problems with 'TE_PLAYERATTACHMENT'
 
As i remember "TE_PLAYERATTACHMENT" only support alphatest sprites (High Detail).

Neeeeeeeeeel.- 07-12-2012 00:50

Re: Problems with 'TE_PLAYERATTACHMENT'
 
1 Attachment(s)
This is the sprite.

yokomo 07-12-2012 04:21

Re: Problems with 'TE_PLAYERATTACHMENT'
 
1 Attachment(s)
Tested your spr and works fine:
https://dl.dropbox.com/u/54275426/party.png
here i attached the code. Taken from Tuty's team spr.

this is why your spr won't show:
Code:

write_short( 99999 );
you can set it lower than that, use 30000 is okay.

Neeeeeeeeeel.- 07-13-2012 01:02

Re: Problems with 'TE_PLAYERATTACHMENT'
 
Works fine, thanks :D

Now... how can I delete the sprite?

PD: Tested with
PHP Code:

write_short); 

Do not work.

meTaLiCroSS 07-13-2012 01:22

Re: Problems with 'TE_PLAYERATTACHMENT'
 
TE_KILLPLAYERATTACHMENTS ... ?

Neeeeeeeeeel.- 07-13-2012 01:57

Re: Problems with 'TE_PLAYERATTACHMENT'
 
Quote:

Originally Posted by meTaLiCroSS (Post 1749243)
TE_KILLPLAYERATTACHMENTS ... ?

Thanks:3


All times are GMT -4. The time now is 15:22.

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