Raised This Month: $32 Target: $400
 8% 

Sprites above objects


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gun$linger
Junior Member
Join Date: Dec 2009
Old 10-06-2018 , 14:31   Sprites above objects
Reply With Quote #1

Hello.
I've seen some plugins that show sprites over spawned objects, like here, above boxes: https://youtu.be/pYjjaiT_fAw
Is there some way to show sprites above thrown granades and/or claymores in this plugin: https://forums.alliedmods.net/showth...t=72089&page=6 ?
Gun$linger is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-06-2018 , 15:56   Re: Sprites above objects
Reply With Quote #2

Please post in the scripting help section if you're asking how to code something.
The stocks here can help you - https://forums.alliedmods.net/showthread.php?t=310276 - pick a stock that allows you to place a sprite on certain coordinates or next to an entity.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Gun$linger
Junior Member
Join Date: Dec 2009
Old 10-06-2018 , 17:04   Re: Sprites above objects
Reply With Quote #3

Okay so i found something like this: https://github.com/baso88/SC_AngelSc...orary-Entities .
The effect should be like from: TE_PLAYERATTACHMENT and i've look up on "Grenade Trail" plugin to see some similiar use but ofc granade entity is not a player. TE_SPRITE won't work cuz it should be static follow :/ Any other guidane or example script to look it up?
Gun$linger is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 10-06-2018 , 19:35   Re: Sprites above objects
Reply With Quote #4

Here https://forums.alliedmods.net/showthread.php?t=175372 you have that you need.
__________________
My English is A0
E1_531G is offline
Gun$linger
Junior Member
Join Date: Dec 2009
Old 10-08-2018 , 15:05   Re: Sprites above objects
Reply With Quote #5

Okay so i made this plugin: https://www.youtube.com/watch?v=ZS7DLJWKeO0 .
But now's the problem. How to make teammates to see other ppl sprites over mines?
When someone plants new one is only seen by the owner. I have no idea how to code this :/
Attached Files
File Type: sma Get Plugin or Get Source (claymore (5).sma - 377 views - 11.6 KB)
Gun$linger is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-08-2018 , 15:41   Re: Sprites above objects
Reply With Quote #6

Quote:
Originally Posted by Gun$linger View Post
When someone plants new one is only seen by the owner. I have no idea how to code this :/
It is currently sent only to one player. (in reliable channel btw, could cause problems)
Code:
message_begin(MSG_ONE, SVC_TEMPENTITY, _, id)
You should change that to this:
Code:
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
__________________

Last edited by <VeCo>; 10-08-2018 at 15:46.
<VeCo> is offline
Gun$linger
Junior Member
Join Date: Dec 2009
Old 10-08-2018 , 16:11   Re: Sprites above objects
Reply With Quote #7

Well that's one problem solved, new appeared. Now all can see all sprites, how to make that u can see sprites only above claymores that ur team planted? There has to be something in code that uses mine to explode on enemy team (i could use that) but i can't pinpoint it.
Gun$linger is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-08-2018 , 17:23   Re: Sprites above objects
Reply With Quote #8

i think making one sprite cant be set specified to team(s)...so what about: if you are TR and making it. put it on you: message_begin(MSG_ONE, but also do a loop for your TR team, and put them the same sprite as to you, with ofc the same origins?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 10-08-2018 at 17:27.
JocAnis 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 05:36.


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