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

[CS:GO]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DabuDos
Junior Member
Join Date: Feb 2015
Location: Germany
Old 06-06-2015 , 09:16   [CS:GO]
Reply With Quote #1

SORRY FORGOT TO WRITE THE TITLE TO THE END!
It should be "[CS:GO] Editing weapon NetProps without giving a new one"

Hey ppl,
I have a short question

PHP Code:
    Client_RemoveWeapon(att"weapon_ak47");
new 
ent GivePlayerItem(att"weapon_ak47");
SetEntProp(entProp_Send"m_iItemIDLow"2048);
SetEntProp(entProp_Send"m_iItemIDHigh"0); 
This is the normal method I use to edit the netprops of a weapon.
Is there a method without always giving the client a new one?

Last edited by DabuDos; 06-06-2015 at 09:18. Reason: Forgot the mention the title
DabuDos is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 06-06-2015 , 09:25   Re: [CS:GO]
Reply With Quote #2

Have you tried OnEntityCreated to see if you can modify the props in that function?
__________________
View my Plugins | Donate
TnTSCS is offline
DabuDos
Junior Member
Join Date: Feb 2015
Location: Germany
Old 06-06-2015 , 09:28   Re: [CS:GO]
Reply With Quote #3

Quote:
Originally Posted by TnTSCS View Post
Have you tried OnEntityCreated to see if you can modify the props in that function?
Not yet.
I forgot to mention that I want to edit the NetProps in the player_death event maybe that can help someone...
DabuDos is offline
cam0
Senior Member
Join Date: Feb 2015
Old 06-06-2015 , 10:01   Re: [CS:GO]
Reply With Quote #4

Quote:
Originally Posted by DabuDos View Post
Not yet.
I forgot to mention that I want to edit the NetProps in the player_death event maybe that can help someone...
What is your goal? To change the skin of items that are dropped on death?
cam0 is offline
DabuDos
Junior Member
Join Date: Feb 2015
Location: Germany
Old 06-06-2015 , 11:58   Re: [CS:GO]
Reply With Quote #5

Quote:
Originally Posted by cam0 View Post
What is your goal? To change the skin of items that are dropped on death?
I want to change the StatTrak Kills, I have a method to switch the weapon instantly but animations are looking really crappy with that.
DabuDos is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-06-2015 , 20:29   Re: [CS:GO]
Reply With Quote #6

U have to spawn the correct classnames for the itemdef.

If u change itemdef later the wrong weapon script was executed which causes ur problem
__________________
Neuro Toxin is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 06-07-2015 , 17:43   Re: [CS:GO]
Reply With Quote #7

I find a way to change the kill startrak instantly without bugs/bugs animation.
Hooked on player_death, I tested at round start showing 00000 when I kill a 1 bot 00001, 2 = 00002.... Adding +1 each kill so. What I want to do it to store the startrack kill on the database.... I will show you a video tomorrow.

Last edited by Dr. Api; 06-07-2015 at 17:44.
Dr. Api is offline
DabuDos
Junior Member
Join Date: Feb 2015
Location: Germany
Old 06-07-2015 , 18:25   Re: [CS:GO]
Reply With Quote #8

Quote:
Originally Posted by Dr. Api View Post
I find a way to change the kill startrak instantly without bugs/bugs animation.
Hooked on player_death, I tested at round start showing 00000 when I kill a 1 bot 00001, 2 = 00002.... Adding +1 each kill so. What I want to do it to store the startrack kill on the database.... I will show you a video tomorrow.
If you can provide some code, it would be really helpful! Since I'm always giving a new item settings ActiveWeapon and NextAttack the most weapons (except the knife) are looking ugly
DabuDos is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 06-08-2015 , 03:30   Re: [CS:GO]
Reply With Quote #9

here the video: https://www.youtube.com/watch?v=VvGE...52g-9t&index=1

My function is a BETA I need to test it with double headshot and integrate my ammo plugin too.

Last edited by Dr. Api; 06-08-2015 at 03:34.
Dr. Api 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 01:24.


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