AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   How to use SetEntData, SetEntProp (https://forums.alliedmods.net/showthread.php?t=312963)

iamf2p 12-23-2018 02:14

How to use SetEntData, SetEntProp
 
problem is here:


new gtag = FindSendPropInfo("CLocalWeaponData", "m_iClip1");

SetEntProp(client, Prop_Data, "m_iMaxHealth", damage); //error
SetEntData(client, gtag, value, 4, true); //error too

how do I fix this, and how to use this, and and and and how to find a tf2 dumps

help me :3:3:3:3:3

iamf2p 12-23-2018 02:20

Re: How to use SetEntData, SetEntProp
 
can you give me tf2 dumps website or file?

nosoop 12-23-2018 02:53

Re: How to use SetEntData, SetEntProp
 
Big ol' yikes

Quote:

Originally Posted by iamf2p (Post 2630608)
how do I fix this

Give us a complete plugin and the corresponding error message(s) you're getting. As knowledgeable as some of us are, we neither a smart autocompleting compiler nor a mind reader, nor are we going to put in any effort for something you should've already given us.

Quote:

Originally Posted by iamf2p (Post 2630608)
and and and and how to find a tf2 dumps

Constantly up-to-date dumps for various TF2 things are available from my server here.

Quote:

Originally Posted by iamf2p (Post 2630608)
and how to use this

You'll probably only need SetEntProp(|Ent|Float|String|Vector) (that is, not SetEntData); use Prop_Data for properties in datamaps.txt and Prop_Send for those in netprops.txt.

Bacardi 12-23-2018 03:18

Re: How to use SetEntData, SetEntProp
 
SourceMod have two server commands for dump netprops datamaps.
But this will likely crash your SRCDS sooner or later after these commands (You not need these commands in daily use tough).

Code:

sm_dump_netprops Prop_Send.txt
sm_dump_datamaps Prop_Data.txt

And use these instead "offsets"


iamf2p 12-23-2018 04:22

Re: How to use SetEntData, SetEntProp
 
Many thanks, everyone!


All times are GMT -4. The time now is 21:24.

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