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

Module: Counter-Strike Weapon Mod [1.7.1]


Post New Thread Reply   
 
Thread Tools Display Modes
God Of Gaming
Junior Member
Join Date: Feb 2013
Location: Bulgaria
Old 11-19-2018 , 18:18   Re: Module: Counter-Strike Weapon Mod [1.6.3]
Reply With Quote #31

Oh lol, why the hell am I using the old hl weaponmod from a decade ago when there's this. This works so much better!

P.S. there seems to be some sort of conflict with ConnorMcLeod's bpammo_features.amxx

P.S.2 for some reason GiveWeaponByName() doesnt seem to work?

P.S.3 I noticed a few pretty nasty bugs, I'd say this is not yet ready for use, but theres definitely potential in there, I hope version 1.7.0 fixes these
__________________

Last edited by God Of Gaming; 11-25-2018 at 05:26.
God Of Gaming is offline
Send a message via Skype™ to God Of Gaming
PyPKjE20
Member
Join Date: Dec 2010
Location: Lithuania
Old 12-02-2018 , 18:09   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #32

Pleas add function pev_viewmodel2 + pev_skin (textured pack) funcion
__________________

CS:GO Open Chest MOD IP: csgo.slimi.lt
New CS 1.6 CSGO IP: pub.slimi.lt
CS 1.6 Slimi RPG MOD http://rpg.slimi.lt
PyPKjE20 is offline
Send a message via Skype™ to PyPKjE20
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 12-03-2018 , 03:01   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #33

Quote:
Originally Posted by PyPKjE20 View Post
Pleas add function pev_viewmodel2 + pev_skin (textured pack) funcion
weapon skin can be changed but it also changes player's skin. (viewmodel of the weapon is attached to player.)
__________________

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


Probably Left AM
Ghosted is offline
PyPKjE20
Member
Join Date: Dec 2010
Location: Lithuania
Old 12-03-2018 , 03:55   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #34

What code would you use to change the texture of a weapon?
__________________

CS:GO Open Chest MOD IP: csgo.slimi.lt
New CS 1.6 CSGO IP: pub.slimi.lt
CS 1.6 Slimi RPG MOD http://rpg.slimi.lt
PyPKjE20 is offline
Send a message via Skype™ to PyPKjE20
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 12-03-2018 , 08:59   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #35

Quote:
Originally Posted by PyPKjE20 View Post
What code would you use to change the texture of a weapon?
get playerid and edit pev_body/pev_skin
this worked with weapmodel (p_*) but should work on viewmodel too
this also changed player's submodel (if there is)
__________________

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


Probably Left AM

Last edited by Ghosted; 12-03-2018 at 08:59.
Ghosted is offline
metal_upa
Senior Member
Join Date: Jun 2016
Old 12-03-2018 , 13:05   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #36

Quote:
Originally Posted by Ghosted View Post
get playerid and edit pev_body/pev_skin
this worked with weapmodel (p_*) but should work on viewmodel too
this also changed player's submodel (if there is)
I doubt that, pev_body and pev_skin will never work on v_* model, it handled on client-side. Metahook can do this stuff.
metal_upa is offline
Old 12-24-2018, 08:11
quLeryuzz
This message has been deleted by quLeryuzz. Reason: not necessary.
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 12-25-2018 , 06:59   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #37

Ok, I did it easily. But I want to you add to module something.
I use your module for lasermine plugin, and it was successful. But this is not a weapon. Oke this is specific a weapon but, when I take another weapon, this shouldn't remove on player.
That's why, can you add free Weapon Type? Not pistol, not ShotGun, only free weapon type. And How can move weapon to Slot5?



Don't look to ammo. I haven't written yet.
__________________

csduragi.com
quLeryuzz is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 12-25-2018 , 08:13   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #38

Quote:
Originally Posted by quLeryuzz View Post
Ok, I did it easily. But I want to you add to module something.
I use your module for lasermine plugin, and it was successful. But this is not a weapon. Oke this is specific a weapon but, when I take another weapon, this shouldn't remove on player.
That's why, can you add free Weapon Type? Not pistol, not ShotGun, only free weapon type. And How can move weapon to Slot5?



Don't look to ammo. I haven't written yet.
Free type does not exists, but you can change slot of pistol/rifle via weaponlist message, but thats kinda useless when you can't have same weapon type weapon with custom one. (For example for pistol you wont be able to have p228 and lasermine together)
__________________

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


Probably Left AM
Ghosted is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 12-25-2018 , 16:14   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #39

Can you add native like GiveWeaponByName? It will not be sending drop command to player. Because I wrote somethings and I approached.
Code:
public plugin_precache()
{
    BuildWeaponModels(Weapon, VMODELI, PMODELI, WMODELI);
}
public plugin_init()
{
    register_forward(FM_Touch,"FM_Touch_hook")
    register_clcmd("drop","dropped")
}
public dropped(id)
{
    justdropped[id]=true
    set_task(0.5,"notdropped",id)
}
public notdropped(id) justdropped[id]=false

public FM_Touch_hook(weaponbox,id)
{
    if(id && is_user_alive(id) && !is_user_bot(id) && pev_valid(weaponbox) && !justdropped[id])
    {
        static classname[64]
        pev(weaponbox,pev_classname,classname,63)
        if(equali(classname,"weaponbox"))
        {
            pev(weaponbox,pev_model,classname,63)
            if(equali(classname,WMODELI))
            {
                client_print_color(id, id, "dogru/true")
                justdropped[id]=true
                set_task(0.5,"notdropped",id)
                GiveWeaponByName(id,"laserm")
                if(pev_valid(weaponbox)) engfunc(EngFunc_RemoveEntity,weaponbox)
            }
        }
    }
}
give_item doesn't send drop command. But your GiveWeaponByName native send drop command.
Does this have anything to do with it? https://github.com/CodeGhosty/CSWM/b.../CSWM.cpp#L989

---
And I think you can add SlotID to weapons. Because u added hud to weapons.

I'm waiting next version. A very successful module.
__________________

csduragi.com
quLeryuzz is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 12-25-2018 , 19:13   Re: Module: Counter-Strike Weapon Mod [1.7]
Reply With Quote #40

I wrote a pistol, that's name is Magic Wand. It has got unlimited ammo. When I writing I hope I didn't make a mistake.
I found v model on internet. I made p and w models with MilkShape.
I taken effects in codes from SweetMilitary.
Attached Files
File Type: zip magicwand_cswm.zip (330.0 KB, 251 views)
__________________

csduragi.com

Last edited by quLeryuzz; 12-25-2018 at 19:18.
quLeryuzz 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 11:33.


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