Raised This Month: $ Target: $400
 0% 

Reset view model and block knife attack 2.


Post New Thread Reply   
 
Thread Tools Display Modes
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-25-2008 , 08:33   Re: Reset view model and block knife attack 2.
Reply With Quote #11

Woops... ....

@xbatista:
Use Connor's code, but fix his typo - Add s to the if statement.
PHP Code:
if( ( Button IN_ATTACK2 ) && get_user_weaponid ) == CSW_KNIFE )

-- >

if( ( 
Buttons IN_ATTACK2 ) && get_user_weaponid ) == CSW_KNIFE 
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-25-2008 , 08:34   Re: Reset view model and block knife attack 2.
Reply With Quote #12

Quote:
Originally Posted by xbatista View Post
viewmodel.Knife model.
P.S.Will try block attack2.
Are you an idiot ?
Tell me witch plugin you use, either this plugin is released and you link me to the plugin, either you post the plugin code.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 12-25-2008, 08:40
Dores
This message has been deleted by Dores. Reason: ...
Old 12-25-2008, 08:48
xbatista
This message has been deleted by xbatista.
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-25-2008 , 08:49   Re: Reset view model and block knife attack 2.
Reply With Quote #13

Quote:
viewmodel.Knife model.
This is about reset view model.This is other code request.

I know I edited to Buttons.
But no damage taken by knife,but model still playing attack2.


OK here is the code.I just whant to block to zombies knife attack2,and reset for humans knife model,becouse sometimes when I'm killing a human and I go to human team knife model like zombie.

Last edited by xbatista; 12-25-2008 at 13:49.
xbatista is offline
Send a message via Skype™ to xbatista
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-25-2008 , 08:55   Re: Reset view model and block knife attack 2.
Reply With Quote #14

So when the zombie becomes a human you use this:
PHP Code:
set_pevidpev_viewmodel2"models/v_knife.mdl" ); 
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-25-2008 , 08:57   Re: Reset view model and block knife attack 2.
Reply With Quote #15

Oh wait .
And how about block attack2?
xbatista is offline
Send a message via Skype™ to xbatista
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-25-2008 , 09:19   Re: Reset view model and block knife attack 2.
Reply With Quote #16

What about it? You will still see the viewmodel you have set.
Use the code in my last post everytime that the player is using a knife, probably best in CurWeapon event.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-25-2008 , 09:26   Re: Reset view model and block knife attack 2.
Reply With Quote #17

YEP now normal.
But block attack2 won't work.It does any damage but but attacks2 of knife are playing/slashing XD
I'm now about block attack2 of knife.

Last edited by xbatista; 12-25-2008 at 09:32.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-25-2008 , 12:31   Re: Reset view model and block knife attack 2.
Reply With Quote #18

I think he mean the attack2 not doing damage, but animation is playing
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-25-2008 , 12:47   Re: Reset view model and block knife attack 2.
Reply With Quote #19

Quote:
I think he mean the attack2 not doing damage, but animation is playing
YES!
xbatista is offline
Send a message via Skype™ to xbatista
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-25-2008 , 12:48   Re: Reset view model and block knife attack 2.
Reply With Quote #20

That's exactly what he means, but I don't know what to do to prevent it.
Maybe:
PHP Code:
// Add a line after the attack block:
// [Rest of the plugin here...]
set_ucuc_handleUC_ButtonsButton & ~IN_ATTACK2 )
set_pevidpev_viewmodel2"models/v_knife.mdl" ); 
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores 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 09:04.


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