Hello !
Today I'm writing here for ask you if you know how can I, with a primary attack swep, show a material on the target swep.
When the shooter left click with the swep on a player, in the player(target) screen pop a picture which is in
[CODE]MyAddons\materials\models\img.vtf[/CODE].
Something like this for example :
[video]https://youtu.be/NF3j8gOhk-w[/video]
Did you how can I do the primary attack code ?
Send a net message to the target player in the PrimaryAttack function that tells them to open the image. You can get the target using:
[code]self:GetOwner():GetEyeTrace().Entity[/code]
I would like the image open in the target screen but the player can close it.
If we can't use swep, a command maybe ?
[CODE]/show[/CODE] and on the target the image pop.
You would still use the method I said -- the closing function would come from your derma/panel implementation.
I don't see very well how it will work, could you explain more in details please ? XDD
- Player shoots weapon
- Serverside, if the hit entity is a player, send a net message to them
- In the clientside net callback, create the panel with your picture
Yes it's exaclly what I wan't but I don't know how to do this !
Sorry, you need to Log In to post a reply to this thread.