Raised This Month: $62 Target: $400
 15% 

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 new Zombie Mod (2019)
Based on best and fun half-life maps
Look at the video below

https://www.youtube.com/watch?v=bdvwxRujAl4&t=249s
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 new Zombie Mod (2019)
Based on best and fun half-life maps
Look at the video below

https://www.youtube.com/watch?v=bdvwxRujAl4&t=249s
Krtola is offline
Send a message via Skype™ to Krtola
thEsp
Senior Member
Join Date: Aug 2017
Location: Gjilan, Albania
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?
__________________
54 68 61 6e 6b 20 79 6f 75 20 66 6f 72 20 67 65 74 74 69 6e 67 20 6d 79 20 61 74 74 65 6e 74 69 6f 6e 21
__________________
YouTube channel
GitHub
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 new Zombie Mod (2019)
Based on best and fun half-life maps
Look at the video below

https://www.youtube.com/watch?v=bdvwxRujAl4&t=249s

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.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Website | Channel


Last edited by CrazY.; 06-14-2019 at 07:39.
CrazY. is offline
Reply


Thread Tools
Display Modes

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:30.


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