Raised This Month: $65 Target: $400
 16% 

Module: Counter-Strike Weapon Mod [1.6.3]


Post New Thread Reply   
 
Thread Tools Display Modes
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-16-2018 , 13:28   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #11

Quote:
Originally Posted by Ghosted View Post
Description
Presenting You Counter-Strike Weapon Mod. This Module Allows Uou To Add Infinite Amount of Weapons Into Game. Usually Such Things Are Used In Zombie Mods, But You Can Use This One On Classic Mode If You Want . CSWM Created Using Following Projects SDKs:

  1. ReGameDLL_CS
  2. AMX MOD X
  3. MetaMod

→ Credits Goes To These Projects Authors

______________________________________

  • No Weapon Limit
  • Over 9 Attack2 Modes
  • Over 17 New Ammos Can Be Adeded
  • Only Resources Required & Low Experience of Scripting
  • You Can Download Source Code From Here
  • Or Report An Issue


Tutorial
  • Creating Weapon
    Code:
    	new Weapon = CreateWeapon(<Model Name>, <Type>, <Name>);
  • Editing/Defining Parameters
    • Deploy
      Code:
      	BuildWeaponDeploy(<Weapon>, <Animation [-1 = Auto Detect]>, <Duration [0.0 = Auto Detect]>);
    • Shoot
      Code:
      	BuildWeaponPrimaryAttack(<Weapon>, <Delay>, <Damage>, <Recoil>, <Animation [-1 = Auto Detect (Alle)]> ...);
    • Reload Style of Pistol/Rifle/Sniper
      Code:
      	BuildWeaponReload(<Weapon>, <Animation [-1 = Auto Detect]>, <Duration [0.0 = Auto Detect]>);
    • Reload Style of Shotgun (Uses Default Animation Indexes)
      Code:
      	BuildWeaponReload2(<Weapon>, <Duration [Insert Time]>, <Style [M3/XM1014]>);
    • Models
      Code:
      	BuildWeaponModels(<Weapon>, <View Model>, <Weapon Model>, <World Model>);
    • Ammo
      Code:
      	BuildWeaponAmmunition(<Weapon>, <Clip>, <Type>);
    • Fire Sound
      Code:
      	BuildWeaponFireSound(<Weapon>, <Sound>);
    • Weapon List (HUD)
      Code:
      	BuildWeaponList(<Weapon>, <WeaponList Name>);
    • Flags
      Code:
      	BuildWeaponFlags(<Weapon>, <Flag Bitsum>);


Where's Secondary Attack Functions? They Are Not Done Yet

Requirements
↪ MetaMod
↪ AMX MOD X


How To Use
Enable 'sv_cheats' (Restart The Game) & Type 'give *', Where * Is Model Name of The Weapon Or Create Your Own Weapons Menu Using This Source Code.


Author
It's Me (Ghost)


Platforms
At This Time > Windows Only


How To Install
First Download [Direct Link], Then Add 'cswm' in 'modules.ini'.


Examples
Does this support adding entirely new weapons to CS on slots? By that I mean having all of the old weapons plus the new ones. Also, is ReHLDS a must?
DarthMan is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 08-16-2018 , 15:00   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #12

Quote:
Originally Posted by DarthMan View Post
Does this support adding entirely new weapons to CS on slots? By that I mean having all of the old weapons plus the new ones. Also, is ReHLDS a must?
No need to quote whole post. No you cant have all old ones and new ones holding at once. No you don't need reHLDS/reGameDLL.
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)
Ghosted is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 09-08-2018 , 02:59   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #13

Tried to build some weapons from cs:go, then noticed it's windows only :/ Can we expect linux support?
And what will get_user_weapon(id) return when I've selected custom weapon?
__________________
Selling advanced CS:GO Mod for Counter-Strike 1.6
Information about mod and contacts can be found here: https://firefly.lt/

Last edited by Airkish; 09-08-2018 at 02:59.
Airkish is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-08-2018 , 06:17   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #14

Quote:
Originally Posted by Airkish View Post
Tried to build some weapons from cs:go, then noticed it's windows only :/ Can we expect linux support?
I'l try.
EDIT: I think compiling on windows to get linux library is impssible.

Quote:
Originally Posted by Airkish View Post
And what will get_user_weapon(id) return when I've selected custom weapon?
Will return Pistol as P228, Rifle as AK47, Sniper as AWP, Shotgun as XM1014
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)

Last edited by Ghosted; 09-08-2018 at 12:02.
Ghosted is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 09-08-2018 , 06:20   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #15

Quote:
Originally Posted by Ghosted View Post
Will return Pistol as P228, Rifle as AK47, Sniper as AWP, Shotgun as XM1014
Would it be possible for you to let us set custom id?

PHP Code:
new Weapon CreateWeapon(<Model Name>, <Type>, <Name>, <Index>); 
__________________
Selling advanced CS:GO Mod for Counter-Strike 1.6
Information about mod and contacts can be found here: https://firefly.lt/

Last edited by Airkish; 09-08-2018 at 06:23.
Airkish is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-08-2018 , 07:02   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #16

Quote:
Originally Posted by Airkish View Post
Would it be possible for you to let us set custom id?

PHP Code:
new Weapon CreateWeapon(<Model Name>, <Type>, <Name>, <Index>); 
no, there is limit of weapon index - 32 (MAX_WEAPONS) which is already filled up.
things would mess up.
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)

Last edited by Ghosted; 09-08-2018 at 07:02.
Ghosted is offline
hjkwe654
Member
Join Date: Sep 2005
Location: Taiwan
Old 09-09-2018 , 02:45   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #17

CSWM will conflict with other plugins and cause server crash

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <rpgx>

#define dmgcalc (0.04 * RPGx_GetUpgradeLevel(attacker, upgrade_id))

new g_hambots
new cvar_botquota
new upgrade_id

public plugin_init() {
    
register_plugin("Knife Dmg+ RPGx Upgrade""2.7""hjkwe654")
    
cvar_botquota get_cvar_pointer("bot_quota")
    
RegisterHam(Ham_TakeDamage"player""KnifeDamage")
}

public 
client_putinserver(id) {
    if (!
is_user_bot(id) && g_hambots && !cvar_botquota)
        return
    
    
set_task(0.1"fw_RegisterHamBots"id)
}

public 
fw_RegisterHamBots(id) {
    
RegisterHamFromEntity(Ham_TakeDamageid"KnifeDamage_BOT")
    
g_hambots true
}

public 
RPGx_OnPluginReady()
    
upgrade_id RPGx_MakeUpgrade("近戰訓練"100157)

public 
KnifeDamage(thisidattackerFloat:fDmgdamagebits) {
    if(
is_user_alive(attacker)){
        new 
iLevel RPGx_GetUpgradeLevel(attackerupgrade_id)
        if(
iLevel && get_user_weapon(attacker) == CSW_KNIFE)
        {
            
SetHamParamFloat(4fDmg * (dmgcalc))   //this code will conflict with CSWM
            
return HAM_HANDLED
        
}
    }
    return 
HAM_IGNORED
}

public 
KnifeDamage_BOT(thisidattackerFloat:fDmgdamagebits) {
    if(
is_user_alive(attacker)){
        new 
iLevel RPGx_GetUpgradeLevel(attackerupgrade_id)
        if(
iLevel && get_user_weapon(attacker) == CSW_KNIFE)
        {
            
SetHamParamFloat(4fDmg + (iLevel 0.08))   //this code will conflict with CSWM
            
return HAM_HANDLED
        
}
    }
    return 
HAM_IGNORED

hjkwe654 is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-09-2018 , 05:49   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #18

Quote:
Originally Posted by hjkwe654 View Post
CSWM will conflict with other plugins and cause server crash
Spoiler
Thanks for report, i have fixed the issue, problem was not SetHamParamFloat, it was caused after restarting the game and shooting bot.

Your code is incorrect at:
Code:
if (!is_user_bot(id) && g_hambots && !cvar_botquota)
		return
should be:
Code:
if (!is_user_bot(id) || g_hambots || !cvar_botquota)
		return
If you face any issues please report here or on github page.
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)

Last edited by Ghosted; 09-09-2018 at 05:50.
Ghosted is offline
hjkwe654
Member
Join Date: Sep 2005
Location: Taiwan
Old 09-09-2018 , 14:28   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #19

One more issue, client get into buy menu will crash client side. (After update to 1.6.1)

Last edited by hjkwe654; 09-09-2018 at 14:29.
hjkwe654 is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-09-2018 , 17:20   Re: Module: Counter-Strike Weapon Mod [1.6 R]
Reply With Quote #20

Quote:
Originally Posted by hjkwe654 View Post
One more issue, client get into buy menu will crash client side. (After update to 1.6.1)
That should not be connected to server in any way. Anyway tested and it is not an issue.
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 48%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)

( Donate) ( Steam)

Last edited by Ghosted; 09-09-2018 at 17:20.
Ghosted 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:13.


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