Raised This Month: $ Target: $400
 0% 

Objects are pushing players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 08-26-2013 , 16:26   Objects are pushing players
Reply With Quote #1

For some reason when this object gets created, if you touch it, you get pushed into the air, and die. Trying to find a way to fix that, but no available.

PHP Code:
            GetEntPropVector(clientProp_Send"m_vecOrigin"location);
            
location[2] += 120.0;

            new 
Float:vel[3];
            
vel[0] = GetRandomFloat(-2000.02000.0);
            
vel[1] = GetRandomFloat(-2000.02000.0);
            
vel[2] = GetRandomFloat(400.0800.0);

            new 
entity CreateEntityByName("prop_fuel_barrel");
            
DispatchKeyValue(entity"model"MODEL_BARREL);
            
DispatchKeyValue(entity"BasePiece"MODEL_BARRELB);
            
DispatchKeyValue(entity"FlyingPiece01"MODEL_BARRELA);
            
DispatchKeyValue(entity"FlyingParticles""barrel_fly");
            
DispatchKeyValue(entity"DetonateParticles""weapon_pipebomb");
            
DispatchKeyValue(entity"DetonateSound""BaseGrenade.Explode");
            
DispatchSpawn(entity);

            
SetEntityMoveType(entityMOVETYPE_VPHYSICS);
            
TeleportEntity(entitylocationNULL_VECTORvel);
            
ActivateEntity(entity); 
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 08-26-2013 , 16:59   Re: Objects are pushing players
Reply With Quote #2

This is for L4D, I'm guessing?

Perhaps try spawning it without modifying its velocity. I've found that in most cases, when an entity that doesn't move gets velocity applied onto it, it "transfers" the velocity onto whatever touches it.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP 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 09:35.


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