Raised This Month: $ Target: $400
 0% 

Delay Knife Attack


Post New Thread Reply   
 
Thread Tools Display Modes
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-21-2013 , 05:16   Delay Knife Attack
Reply With Quote #31

You probably have conflicting plugins. The damage is blocked. I superceded TraceAttack. TakeDamage should not even be called.
__________________
Black Rose is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 10-21-2013 , 07:45   Re: Delay Knife Attack
Reply With Quote #32

Hey, I try to remove all plugins but still same like in the video also here is my plugins.ini list:

Code:
; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx        ; admin base (required for any admin-related)
;admin_sql.amxx        ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx        ; basic admin console commands
adminhelp.amxx        ; help command for admin console commands
adminslots.amxx        ; slot reservation
multilingual.amxx    ; Multi-Lingual management

; Menus
menufront.amxx        ; front-end for admin menus
cmdmenu.amxx        ; command menu (speech, settings)
plmenu.amxx        ; players menu (kick, ban, client cmds.)
;telemenu.amxx        ; teleport menu (Fun Module required!)
mapsmenu.amxx        ; maps menu (vote, changelevel)
pluginmenu.amxx        ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx        ; console chat commands
antiflood.amxx        ; prevent clients from chat-flooding the server
scrollmsg.amxx        ; displays a scrolling message
imessage.amxx        ; displays information messages
adminvote.amxx        ; vote commands

; Map related
nextmap.amxx        ; displays next map in mapcycle
mapchooser.amxx        ; allows to vote for next map
timeleft.amxx        ; displays time left on map

; Configuration
pausecfg.amxx        ; allows to pause and unpause some plugins
statscfg.amxx        ; allows to manage stats plugins via menu and commands

; Enable to use AMX Mod plugins
;amxmod_compat.amxx    ; AMX Mod backwards compatibility layer

; Other Plugins
Amok_Kukri.amxx debug
I can't guess what the problem is

EDIT: It works with wall or friends with mp_friendlyfire 0 but if attack the enemy like in the video

Last edited by Randomize; 10-21-2013 at 07:59.
Randomize is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-21-2013 , 10:54   Re: Delay Knife Attack
Reply With Quote #33

Did you make any changes to it?
Do you get any errors in logs?
Which Ham are you using? Vanilla or update?
__________________
Black Rose is offline
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 10-21-2013 , 21:41   Re: Delay Knife Attack
Reply With Quote #34

I didn't make any change, just copy yours and compile then test it. Also I didn't have any update installed. For ham version, I'll take a look into it after school. Also I use CS 1.6 V23b No Steam, I tested it with bots. I'll PM soon
Randomize is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-22-2013 , 03:53   Re: Delay Knife Attack
Reply With Quote #35

Something i like to do since allocated strings are never reset, and since sending the same string allocate each time a new place in memory is to cache the allocated string in a global variable and use it when possible.
With set_pev, the only thing to do is to use set_pev_string instead :

PHP Code:
new const P_MODEL[] = "models/p_knife.mdl";
new const 
V_MODEL[] = "models/v_amok_kukri.mdl";

new 
g_iszP_MODEL;
new 
g_iszV_MODEL;

public 
plugin_precache() {
    
    
precache_model(P_MODEL);
    
precache_model(V_MODEL);
    
    
g_iszP_MODEL engfunc(EngFunc_AllocStringP_MODEL);
    
g_iszV_MODEL engfunc(EngFunc_AllocStringV_MODEL);
}

public 
fwd_ItemDeploy_Post(ent) {
    
    new 
id get_pdata_cbase(entm_pPlayer4);
    
    if ( 
is_user_alive(id) && gKnife[id] ) {
        
set_pev_string(idpev_weaponmodel2g_iszP_MODEL);
        
set_pev_string(idpev_viewmodel2g_iszV_MODEL);
    }

Instead of set_pev_string, for that particular case we could use set_pev + pev_weaponmodel and pev_viewmodel instead of pev_weaponmodel2 and pev_viewmodel2.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-22-2013 at 03:54.
ConnorMcLeod is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-22-2013 , 14:55   Re: Delay Knife Attack
Reply With Quote #36

Quote:
Originally Posted by Randomize View Post
I use CS 1.6 V23b No Steam
Good luck.
__________________
Black Rose is offline
Old 07-09-2014, 09:38
shopbot
This message has been deleted by YamiKaitou. Reason: unreleated to thread
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 12:47.


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