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

NoSil (hides silencer on models)


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-26-2012 , 06:20   Re: NoSil (hides silencer on models)
Reply With Quote #31

Quote:
Originally Posted by Costin83 View Post
I think I made a little improvement to the code, though I don't know how to script... (when player spawns he would had the default silenced usp model until he switched weapons) now I've added a second check on item deploy so when the player spawns/drops his primary weapon it would update the model accordingly.

Also I've added a shield unsilenced usp model because we all know that when you have a shield the usp can't be silenced, and I believe this feature it's a "must" for this plugin.
Your code is wrong, you are checking read_data(2) from functions that are not events callbacks.
I've made it for you, cache the allocated models values so they are not allocated again and again (allocated string stays between map so if we can limit the increase to only 1 per map i think it is better )

I hope plugin author doesn't mind if i post this, just PM me if you want i remove it.

I haven't tested the plugin, let me know if models are not set correctly and in which situations.
Attached Files
File Type: sma Get Plugin or Get Source (nosil.sma - 984 views - 4.6 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-26-2012 at 06:25.
ConnorMcLeod is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-26-2012 , 09:56   Re: NoSil (hides silencer on models)
Reply With Quote #32

Thx for the rewrite. I've been silently waited for someone to do just that
Now I can call this plugin being complete
__________________
Originally Posted by Hawk552
Actually, if your style pisses me off enough, I'll generally go through your code and find some reason to unapprove it or at least hold it back.
Costin83 is offline
Send a message via Yahoo to Costin83
Claude360
New Member
Join Date: Jun 2020
Old 06-10-2020 , 07:10   Re: NoSil (hides silencer on models)
Reply With Quote #33

i got models for cscz for the plugin users
Attached Files
File Type: zip models.zip (288.3 KB, 265 views)
Claude360 is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 05-28-2021 , 14:38   Re: NoSil (hides silencer on models)
Reply With Quote #34

Quote:
Originally Posted by Claude360 View Post
i got models for cscz for the plugin users
You are my God, I messing around to learn how to edit models because I use CZ, thank you very much
SoulWeaver16 is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 06-02-2021 , 12:39   Re: NoSil (hides silencer on models)
Reply With Quote #35

One bug that I came across is that it seems that when the USP is without a silencer, the shield disappears.
Is there a way that there is a p_shield_usp_nosil.mdl in the code?

Quote:
Originally Posted by Claude360 View Post
i got models for cscz for the plugin users
User Claude360 made a model for CSCZ
Attached Images
File Type: jpg 20210602132939_1.jpg (73.9 KB, 110 views)
File Type: jpg 20210602133016_1.jpg (73.8 KB, 89 views)
File Type: jpg 20210602133055_1.jpg (77.1 KB, 112 views)
SoulWeaver16 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 12:27.


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