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

[29/11/09] ScoutzKnivez Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Jon
Veteran Member
Join Date: Dec 2007
Old 11-07-2009 , 11:11   Re: [07/11/09] Sk Mod
Reply With Quote #11

Consider ham instead of curweapon or filter weapons.
Jon is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-07-2009 , 11:55   Re: [07/11/09] Sk Mod
Reply With Quote #12

Also you should update fov player offsets when you block the zoom (should be a better way than register message, like register secondary attack from weapon_scout entity

Code:
363 - m_iFOV
364 - m_iClientFOV

-edit-
This seems to work fine :

PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_scout""Scout_SecondaryAttack_Pre"0)
}

public 
Scout_SecondaryAttack_PreiEnt )
{
    return 
HAM_SUPERCEDE

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-07-2009 at 12:02.
ConnorMcLeod is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 11-07-2009 , 12:53   Re: [07/11/09] Sk Mod
Reply With Quote #13

Quote:
(Knife : No Slash)

PHP Code:
#include <hamsandwich>

RegisterHamHam_Weapon_PrimaryAttack"weapon_knife""FwdKnifePrim" );

public 
FwdKnifePrim(iKnifeWeaponEntity)
{
    if(
g_KnifeRound && get_pcvar_num(kr_noslash))
    {
        
ExecuteHamB(Ham_Weapon_SecondaryAttackiKnifeWeaponEntity);
                    
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


lazarev is offline
Kureno
Junior Member
Join Date: Nov 2009
Old 11-07-2009 , 13:31   Re: [07/11/09] Sk Mod
Reply With Quote #14

Good Job I like it
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-07-2009 , 13:35   Re: [07/11/09] Sk Mod
Reply With Quote #15

Hi Kureno ^^
__________________
xPaw is offline
Kureno
Junior Member
Join Date: Nov 2009
Old 11-07-2009 , 16:56   Re: [07/11/09] Sk Mod
Reply With Quote #16

Hi xPaw ?
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-07-2009 , 17:55   Re: [07/11/09] Sk Mod
Reply With Quote #17

Quote:
Originally Posted by lazarev View Post

PHP Code:
#include <hamsandwich>

RegisterHamHam_Weapon_PrimaryAttack"weapon_knife""FwdKnifePrim" );

public 
FwdKnifePrim(iKnifeWeaponEntity)
{
    if(
g_KnifeRound && get_pcvar_num(kr_noslash))
    {
        
ExecuteHamB(Ham_Weapon_SecondaryAttackiKnifeWeaponEntity);
                    
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


What i ment by that is that I was writing it, not that I want someone else to write it for me -.-

Edit : Version 1.2 Released
__________________
I am out of order!

Last edited by grimvh2; 11-07-2009 at 18:35.
grimvh2 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-07-2009 , 22:13   Re: [07/11/09] Sk Mod
Reply With Quote #18

You could name it something like "Scout Knives mod", should be more searchable and you could add that date at the end (lastupdated ?)

Also, remove me from the credits since you're not using my old suggested code anymore, ham is better indeed.
__________________
Hunter-Digital is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-08-2009 , 05:06   Re: [07/11/09] Sk Mod
Reply With Quote #19

Quote:
Originally Posted by Hunter-Digital View Post
You could name it something like "Scout Knives mod", should be more searchable.
kk, good point.
__________________
I am out of order!

Last edited by grimvh2; 11-08-2009 at 05:08.
grimvh2 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 11-08-2009 , 05:50   Re: [07/11/09] ScoutzKnivez Mod
Reply With Quote #20

Suggestions? Well, a new mode that you have only 1 bullet, and if one cvar is enabled, when you shoot that only 1 bullet, then you can recharge and get another one, you get me? my english is not very good, sry.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 18:54.


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