Raised This Month: $51 Target: $400
 12% 

Invisible Weapon Only


Post New Thread Reply   
 
Thread Tools Display Modes
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-12-2019 , 16:54   Re: Invisible Weapon Only
Reply With Quote #11

Quote:
Originally Posted by Saint Sinner View Post
Just test this code..if you want to block aimbot , wallhack

the code block 90% hacks..

https://pastebin.com/DrgMS9WR
Solidity has nothing to do with rendering/visibility though.. and that code already affects all entities, with some questionable checks/lines, eh. It looks very chaotic, wouldn't be surprised if it breaks something. It wouldn't even run with that missing callback.

You can't modify client-side entities, so yeah, good luck..
__________________

Last edited by <VeCo>; 06-12-2019 at 16:57.
<VeCo> is offline
Saint Sinner
Senior Member
Join Date: Feb 2016
Old 06-12-2019 , 17:28   Re: Invisible Weapon Only
Reply With Quote #12

Quote:
Originally Posted by <VeCo> View Post
Solidity has nothing to do with rendering/visibility though.. and that code already affects all entities, with some questionable checks/lines, eh. It looks very chaotic, wouldn't be surprised if it breaks something. It wouldn't even run with that missing callback.

You can't modify client-side entities, so yeah, good luck..
do you know a another method more efficiency ?

Last edited by Saint Sinner; 06-12-2019 at 17:29.
Saint Sinner is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-13-2019 , 03:42   Re: Invisible Weapon Only
Reply With Quote #13

I dont understund , u want v_model to be invis, or p_model ?
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-13-2019 , 06:50   Re: Invisible Weapon Only
Reply With Quote #14

The only way is by making the model empty, aka removing the model from the player's screen. You cannot modify the rendering of v_ models, yet. Also, the plugin you posted won't even run.
__________________

Last edited by OciXCrom; 06-13-2019 at 07:07.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-13-2019 , 08:24   Re: Invisible Weapon Only
Reply With Quote #15

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cs_weap_models_api>

public plugin_init()
{
    
register_plugin("Invis Knife""1.0""Krtola")
    
    
RegisterHam(Ham_Spawn"player""invis_knife_after_spawn"1)
}

public 
invis_knife_after_spawn(id)
{
    if(!
is_user_alive(id))
        return

        
cs_set_player_view_model(idCSW_KNIFE"")             
        
cs_set_player_weap_model(idCSW_KNIFE"")

__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
thEsp
BANNED
Join Date: Aug 2017
Old 06-13-2019 , 10:47   Re: Invisible Weapon Only
Reply With Quote #16

How are you sure that he'll spawn with a knife in hands?
thEsp is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-13-2019 , 13:37   Re: Invisible Weapon Only
Reply With Quote #17

Quote:
Originally Posted by thEsp View Post
How are you sure that he'll spawn with a knife in hands?
I really dont fully understund what he want.
But this is just example how u can get invis any weapon not just knife.

PHP Code:
cs_set_player_view_model(idCSW_KNIFE"")              
        
cs_set_player_weap_model(idCSW_KNIFE""
He can use this simple weapon model change way in round_end, new round or when weapon has addeded to player etc...
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4

Last edited by Krtola; 06-13-2019 at 13:39.
Krtola is offline
Send a message via Skype™ to Krtola
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-14-2019 , 07:09   Re: Invisible Weapon Only
Reply With Quote #18

And this example will work only if he has installed the Weapon API plugin or whatever it's called, plus it's obviously only for knife - why would it require a weapon argument if it was for all weapons? You can do the same effect, without using a weapon, using default AMXX functions.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-14-2019 , 07:31   Re: Invisible Weapon Only
Reply With Quote #19

This, https://github.com/ValveSoftware/halflife/issues/199

this, https://forums.alliedmods.net/showthread.php?t=287260

or this
Quote:
Originally Posted by HamletEagle View Post
Set the viewmodel to nothing.
..

cs_set_player_view_model it's not pev_viewmodel/EV_SZ_viewmodel. What It does is save passed arguments inside a global array, hook Ham_Item_Deploy and update the model to whatever you passed - will change the model in deploy only.
__________________









Last edited by CrazY.; 06-14-2019 at 07:39.
CrazY. 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 03:12.


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