Raised This Month: $8 Target: $400
 2% 

Module: Counter-Strike Weapon Mod [1.7.1]


Post New Thread Reply   
 
Thread Tools Display Modes
killerZM
Senior Member
Join Date: Sep 2016
Old 10-07-2018 , 11:52   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #21

off-topic sorry
where did you learn using C++ to make CS modules ?
killerZM is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-07-2018 , 12:12   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #22

Quote:
Originally Posted by killerZM View Post
off-topic sorry
where did you learn using C++ to make CS modules ?
There are tons of sites/books to learn C++ from.
__________________
HamletEagle is offline
killerZM
Senior Member
Join Date: Sep 2016
Old 10-07-2018 , 15:22   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #23

Quote:
Originally Posted by HamletEagle View Post
There are tons of sites/books to learn C++ from.
i am not talking about C++ i am talking about HL SDK and such
killerZM is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 10-08-2018 , 02:21   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #24

I've learned HLSDK by creating modifications of halflife via its code, and learned C++ via GOOGLING
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 10-08-2018 at 02:23.
Ghosted is offline
killerZM
Senior Member
Join Date: Sep 2016
Old 10-08-2018 , 17:40   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #25

ok

Last edited by killerZM; 10-08-2018 at 17:44.
killerZM is offline
metal_upa
Member
Join Date: Jun 2016
Old 11-02-2018 , 16:43   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #26

Quote:
Weapon Type Can Be Pistol (P22, ShotGun (XM1014), Rifle (AK47), Sniper (AWP).
What about dual gun weapons?
For example i wanna make dual mp5 weapon. How? i see no replacement for Dual-Elites weapon.
metal_upa is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-02-2018 , 18:12   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #27

Quote:
Originally Posted by metal_upa View Post
What about dual gun weapons?
For example i wanna make dual mp5 weapon. How? i see no replacement for Dual-Elites weapon.
That would require a bit code.
RegisterWeaponForward on primary attack post and then send weapon animation.
animation will be left or right depends on which was previous. you can do this by using custom entity variable than is not used by original dll. for example EV_INT_iuser4/pev_iuser4 and set 1/0. 0 will be left 1 will be right.

Example:

Code:
MyHookedForward(Weapon)
{
static IsRight = entity_get_int(Weapon, EV_INT_iuser4);
SendWeaponAnim(Weapon, IsRight ? <YourRightAnimation> : <YourLeftAnimation>);
entity_set_int(Weapon, EV_INT_iuser4, !IsRight);
}
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
metal_upa
Member
Join Date: Jun 2016
Old 11-08-2018 , 14:48   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #28

Quote:
Originally Posted by Ghosted View Post
That would require a bit code.
RegisterWeaponForward on primary attack post and then send weapon animation.
animation will be left or right depends on which was previous. you can do this by using custom entity variable than is not used by original dll. for example EV_INT_iuser4/pev_iuser4 and set 1/0. 0 will be left 1 will be right.

Example:

Code:
MyHookedForward(Weapon)
{
static IsRight = entity_get_int(Weapon, EV_INT_iuser4);
SendWeaponAnim(Weapon, IsRight ? <YourRightAnimation> : <YourLeftAnimation>);
entity_set_int(Weapon, EV_INT_iuser4, !IsRight);
}
You module crash too much on rehlds server, no error log given. I just create a simple weapon replacement for rifle.

BTW this is just a basic weapon replacement:
Spoiler


Can you make a complete documentation of this module, your wiki seems to be out dated.
metal_upa is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-09-2018 , 06:02   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #29

Quote:
Originally Posted by metal_upa View Post
Can you make a complete documentation of this module, your wiki seems to be out dated.
Sorry but i'm currently working on 1.7 version which will also add support for linux, cant tell when it will be done.

PS: I will test module on rehlds/hlds & regame/game.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 11-09-2018 at 06:03.
Ghosted is offline
metal_upa
Member
Join Date: Jun 2016
Old 11-10-2018 , 07:32   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #30

Quote:
Originally Posted by Ghosted View Post
Sorry but i'm currently working on 1.7 version which will also add support for linux, cant tell when it will be done.

PS: I will test module on rehlds/hlds & regame/game.
I would like to use this module to make custom weapons on my server.

Bug found: GiveAmmo(id, WAmmoType_762Nato, 100)
it capped value at 90? why not go more than that?


Nevermind, my bad.. i need to create custom ammo first. Looking forward for your new update.

Last edited by metal_upa; 11-10-2018 at 08:53.
metal_upa 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 19:39.


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