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

Solved My prop_dynamic ents react different since last update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desktop
AlliedModders Donor
Join Date: Sep 2009
Location: C:\Users\Default\
Old 06-17-2017 , 05:51   My prop_dynamic ents react different since last update
Reply With Quote #1

Hi, i've got a problem, kind of strange actually, didn't touch the code but my entities are now not solid.
I use this code to create a classnamed entity so i can detect when the users aim at it.

PHP Code:
public Action CreateProp(int clientint args)
{
    
int entity CreateEntityByName("prop_dynamic");
    
    if (
IsValidEntity(entity))
    {
        
DispatchKeyValue(entity"Classname""MyProp");
        
DispatchKeyValue(entity"model"PROP_MODEL);
        
DispatchKeyValue(entity"Solid""2");
        
DispatchKeyValue(entity"RandomAnimation""0");
        
        
DispatchSpawn(entity);
        
ActivateEntity(entity);
        
        
// After we define kv's, we shall now move the entity
        
float vector[3];
        
GetAimCoords(clientvector);
        
TeleportEntity(entityvectorNULL_VECTORNULL_VECTOR);
        
    }
    return 
Plugin_Handled;

Placing it, model and everything else is working fine, but its not solid anymore.
Im trying to learn more about entities management in CSGO, could someone help me?

Solution: First, the entity must be deployed onto the origin, then, dispatched.
__________________
Massive Infection:: Piu-Games

Last edited by Desktop; 06-17-2017 at 15:24.
Desktop is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 12-22-2017 , 04:40   Re: My prop_dynamic ents react different since last update
Reply With Quote #2

I dont really know what u means, I have not solved this problem, help...
__________________
I am learning sm now
rsdtt is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 12-22-2017 , 06:00   Re: My prop_dynamic ents react different since last update
Reply With Quote #3

Quote:
Originally Posted by rsdtt View Post
I dont really know what u means, I have not solved this problem, help...
Check how I've spawned props here, that may be useful.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-22-2017 , 14:16   Re: My prop_dynamic ents react different since last update
Reply With Quote #4

Quote:
Originally Posted by Papero View Post
Check how I've spawned props here, that may be useful.
or he could just change "DispatchKeyValue(entity, "Solid", "2"); " to "DispatchKeyValue(entity, "Solid", "6"); "
Mitchell is offline
rsdtt
Senior Member
Join Date: Oct 2009
Old 12-24-2017 , 22:26   Re: My prop_dynamic ents react different since last update
Reply With Quote #5

thanks, both
but I want it have gravity that can drop onto ground, can it work?
__________________
I am learning sm now
rsdtt 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 08:51.


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