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

[CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)


Post New Thread Reply   
 
Thread Tools Display Modes
die_man
Senior Member
Join Date: Jul 2017
Old 09-03-2017 , 23:59   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2341

Quote:
Originally Posted by root88 View Post
It looks like setting m_iItemDefinitionIndex before DispatchSpawn fixes almost all problems.
in deathmatch/weapons.sp, stock weapons_GivePlayerItem change this (standard weapons.sp version):
PHP Code:
// Some hacking to bypass inventory
    
if(weaponId NO_WEAPON_SELECTED && targetDefinitinIndex != GetEntProp(weaponEntityProp_Send"m_iItemDefinitionIndex"))
    {
        
weapons_RemovePlayerWeapon(weaponEntityclientIndex);
        
// Weapon is removed on a timer to prevent crash
        
CreateTimer(0.2weapons_Timer_DelayedWeaponKillEntIndexToEntRef(weaponEntity));
        
        
weaponEntity CreateEntityByName(weaponEntityName);
        
DispatchSpawn(weaponEntity);
        
SetEntProp(weaponEntityProp_Send"m_iItemDefinitionIndex"targetDefinitinIndex);
        
EquipPlayerWeapon(clientIndexweaponEntity);
    } 
to this:
PHP Code:
// Some hacking to bypass inventory
    
if(weaponId NO_WEAPON_SELECTED && targetDefinitinIndex != GetEntProp(weaponEntityProp_Send"m_iItemDefinitionIndex"))
    {
        
weapons_RemovePlayerWeapon(weaponEntityclientIndex);
        
// Weapon is removed on a timer to prevent crash
        
CreateTimer(0.2weapons_Timer_DelayedWeaponKillEntIndexToEntRef(weaponEntity));
        
weaponEntity CreateEntityByName(weaponEntityName);
        
SetEntProp(weaponEntityProp_Send"m_iItemDefinitionIndex"targetDefinitinIndex);
        
DispatchSpawn(weaponEntity);
        
EquipPlayerWeapon(clientIndexweaponEntity);
    } 
Attached weapons.sp with this modification.

There is one bug however: skins for p2000 won't work if you have usp-s selected in inventory. I haven't tried to fix it yet.

Let me know if it works for you.
Almost worked
USP-S equipped, and i receive a P2000 without ammo: http://prntscr.com/ggrl17
die_man is offline
root88
Senior Member
Join Date: May 2016
Old 09-04-2017 , 02:32   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2342

Are u sure it has no ammo - did you try shooting? That's strange.
__________________
root88 is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-04-2017 , 09:11   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2343

Quote:
Originally Posted by root88 View Post
Are u sure it has no ammo - did you try shooting? That's strange.
When I select the weapon, I get 13 bullets, but when I fire all of them, I can not reload, because i have no ammo.
die_man is offline
Gobbo
Junior Member
Join Date: May 2017
Old 09-04-2017 , 14:17   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2344

Quote:
Originally Posted by Marounda View Post
Can someone give a "standard" compilated plugin with the fix plz ? =)
+1
Or maybe someone could provide a working link for 1.6 compiler?
I have several errors using 1.8 (they don't seem to be related to include files).

ty

EDIT: 1.6 found here

Last edited by Gobbo; 09-08-2017 at 22:15.
Gobbo is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-04-2017 , 15:32   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2345

Quote:
Originally Posted by Gobbo View Post
+1
Or maybe someone could provide a working link for 1.6 compiler?
I have several errors using 1.8 (they don't seem to be related to include files).

ty
When plugin is fixed, i can post the compiled version np
die_man is offline
Gobbo
Junior Member
Join Date: May 2017
Old 09-04-2017 , 17:21   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2346

Quote:
Originally Posted by die_man View Post
When plugin is fixed, i can post the compiled version np
Sure that would be nice.
Btw what version are you using to compile?
Gobbo is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-04-2017 , 23:31   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2347

Quote:
Originally Posted by Gobbo View Post
Sure that would be nice.
Btw what version are you using to compile?
1.6
die_man is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-06-2017 , 21:58   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2348

Root88, any update?
die_man is offline
controlsuz123
Member
Join Date: Nov 2009
Old 09-07-2017 , 17:59   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2349

Quote:
Originally Posted by root88 View Post
I don't think it's possible for now.
You can just add some info for players, so they know they should change it in their inventory. You can change .weaponName = "P2000" to .weaponName = "P2000/USP-S" too, which will be probably more understandable for players.
thank you very much root88 it's working very nice, that's fine for me .weaponName = "P2000/USP-S" on my servers....
controlsuz123 is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-07-2017 , 19:57   Re: [CS:GO] Deathmatch Goes Advanced (v0.13.8, 23/01/2016)
Reply With Quote #2350

[ MISC ]
– Added a plugin method IServerTools::CreateItemEntityByName which should be used when plugins need to create weapon entities by schema name.

http://blog.counter-strike.net/index.php/2017/09/19268/

Maybe this works? Someone can uses this for P2000?
die_man 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 04:20.


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