ShadowIdX
So i'm using ShadowIdX to remove the shadows of the players using the following code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: ShadowIdX
Shouldn't you send this message to all players? Currently you are hiding only for the one person.
|
Re: ShadowIdX
Yes i am sending it to all players. All players receive the message, but the problem is it fails to restore the shadows and spits out messages that sprites are missing. I'm guessing that the sprite missing is the shadow sprite?
The current code was my second method, the first method i used MSG_BROADCAST and 0 as id. PHP Code:
|
Re: ShadowIdX
I have confirmed that the "Sprite: no pSprite!!!" error happens when i try toggle the shadows back on using
PHP Code:
|
Re: ShadowIdX
looking to the reverse-engineered client.dll, it seems that the only message param is sprite index.
It means, that when you want to hide it, you need to send 0 as a param. But when you need to show it, you need to send sprite (sprites/shadow_circle.spr) index. Also it seems I was mistaken at the beginning. You can safely send it to the one player, instead of sending to everyone. |
Re: ShadowIdX
You're right, i precached the shadow sprite and i set it as a parameter, and it works perfectly. This also brings an opportunity to introduce custom shadow sprites.
Thank you very much NiHiLaNTh :) |
Re: ShadowIdX
Sorry to revive but i use a code to hide the players shadows but i have the same problem as safetymoose the console start flooding this message Sprite: no pSprite!!!, how I can fix it?
code: PHP Code:
|
Re: ShadowIdX
I got that error message when it tried to activate the shadows again using the wrong sprite index.
Here is how you should enable/disable player's shadows correctly: PHP Code:
|
| All times are GMT -4. The time now is 18:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.