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

New model to Wolverine


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-07-2004 , 13:17   New model to Wolverine
Reply With Quote #1

Hey.
I was wondering how I could change the knife model, so when ppl have Wolverine, and uses knife they have this skin: (Attached)
It is the same as WeaponX, but it looks more like Wolverines claws.

Can anyone help me with this ?
__________________
//ShadowLeader - 123
123 is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-07-2004 , 13:19  
Reply With Quote #2

Hmm...
Here it is:
Attached Files
File Type: zip v_knife.zip (72.0 KB, 249 views)
__________________
//ShadowLeader - 123
123 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-07-2004 , 13:21  
Reply With Quote #3

I dont see an attachment... Is it the same as the WeaponX knife model? I was discussing this with jtp it maybe added in a future version, just have to wait and see.

edit: nvm you added it after
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-07-2004 , 13:24  
Reply With Quote #4

Ok...
Can't I put it in the shconfig.ini file or something like that ?
__________________
//ShadowLeader - 123
123 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-07-2004 , 13:37  
Reply With Quote #5

no you'd have to edit the sma of the acutal hero, then compile it to create the amx to get it working.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-07-2004 , 15:20  
Reply With Quote #6

Ok this made me look around and I found 2 different models for wolverine claws I attached both (the v_knife.rar is supposed to be an updated smoother one). Maybe the sounds should be added to the hero as well, if that is possible. Both found at http://www.cs.4players.de/download_waffen.php3 - they have lots of other models like dual colts, etc... something to look at for you hero authors.



Also, I took a look at the coding for WeaponX and if you wanted to add the model to Wolverine all you would have to do is:

First add the v_knife.mdl to the directory cstrike/models/Wolverine/

Then, edit Wolverines sma-

---add to top just after:
#include <superheromod>
Code:
#include <Vexd_Utilities>
---add after:
set_task(1.0,"wolv_loop",0,"",0,"b" )
Code:
  register_event("ResetHUD","newRound","b")
  register_event("WeapPickup","knife","b","1=19")
  register_event("CurWeapon","check_knife","be","1=1")
---add just after:
// Let Server know about Woverines max knife speed
shSetMaxSpeed(gHeroName, "wolv_knifespeed", "[29]" )
}
Code:
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
  precache_model("models/Wolverine/v_knife.mdl")
  return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
---add to the very end
Code:
public newRound(id)
{
  if (!g_hasWolvPowers[id] && is_user_alive(id) && shModActive()) {
    check_knife(id)
  }
  return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public knife(id)
{
  if ( !is_user_alive(id) ) return PLUGIN_CONTINUE

  // Weapon Model change thanks to [CCC]Taz-Devil
  Entvars_Set_String(id, EV_SZ_viewmodel, "models/Wolverine/v_knife.mdl")

  return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------
public check_knife(id)
{
  if (!g_hasWolvPowers[id] || !shModActive() || !is_user_alive(id)) return PLUGIN_CONTINUE

  new clip, ammo
  new wpn_id=get_user_weapon(id, clip, ammo)

  if (wpn_id != CSW_KNIFE) return PLUGIN_CONTINUE

  if (wpn_id == CSW_KNIFE) {
    knife(id)
  }
  return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
Then compile it to get the new amx file.

*all credit due to authors of the respected heros
Attached Files
File Type: rar v_knife.rar (1,002.7 KB, 183 views)
File Type: zip Wolverine_Claws.zip (163.4 KB, 205 views)
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-07-2004 , 16:24  
Reply With Quote #7

Quote:
Originally Posted by vittu
Then compile it to get the new amx file.
How do I compile ?
What program do I need ?
__________________
//ShadowLeader - 123
123 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-07-2004 , 16:54  
Reply With Quote #8

http://forums.alliedmods.net/showthread.php?t=30467 I haven't read what he has written so take it as it is, but it should be simple.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
imported_TicoMeElmo
Senior Member
Join Date: Mar 2004
Location: 123 Fake Street
Old 08-07-2004 , 16:57  
Reply With Quote #9

whoa thats a gangster site i always wanted a butterfly knife as my knife
__________________

 http://sh-server.tk 

Weirdest Conv of my life: Episode 1 | Weirdest Conv of my life: Episode 2 | Episode 3 Coming Soon, BBoY
imported_TicoMeElmo is offline
Send a message via AIM to imported_TicoMeElmo
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 08-07-2004 , 17:06  
Reply With Quote #10

123 check the pm I sent ya
__________________
Chivas2973 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 22:14.


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