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

How to Collide all, but except clients?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NC.svtrade
Senior Member
Join Date: Nov 2015
Old 01-19-2017 , 06:13   How to Collide all, but except clients?
Reply With Quote #1

PHP Code:
g_StartShieldRegen[client] = false;
                    
g_ReinShield[client] = true;
                    
g_SetAnim[client] = false;
                    new 
String:health[256];
                    
IntToString(g_ReinShieldHealth[client], healthsizeof(health));
                    
SetEntPropEnt(shieldProp_Send"m_hOwnerEntity"client);  
                    
SetEntityMoveType(shieldMOVETYPE_VPHYSICS);
                    
DispatchKeyValue(shield"classname""entity_medigun_shield");
                    
SetEntData(shieldg_CollisionOffset24true);
                    
SetEntProp(shieldProp_Send"m_iTeamNum"GetClientTeam(client));  
                    
//SetEntProp(shield, Prop_Data, "m_CollisionGroup", 13|2);
                    //SetEntData(shield, g_CollisionOffset, 2, 4, true);
                    
DispatchKeyValue(shield"model""models/props_mvm/mvm_player_shield2.mdl");
                    
DispatchKeyValue(shield"ModelScale""0.95");
                    
                    if (
TF2_GetClientTeam(client) == TFTeam_Red
                        
DispatchKeyValue(shield"skin""0");
                    else if (
TF2_GetClientTeam(client) == TFTeam_Blue
                        
DispatchKeyValue(shield"skin""1");
                    
                    
DispatchSpawn(shield);
                    
                    
SetVariantInt(g_ReinShieldHealth[client]);
                    
AcceptEntityInput(shield"SetHealth");
                    
SDKHook(shieldSDKHook_OnTakeDamageRein_ShieldHook);
                    
SDKHook(clientSDKHook_OnTakeDamageClient_DamageHook);
                    
EmitSoundToClient(client"weapons/medi_shield_deploy.wav"shield);
                    
                    
g_ReinEntity[client] = EntIndexToEntRef(shield);
                    
SetVariantInt(1);
                    
AcceptEntityInput(client"SetForcedTauntCam");
                    
TF2_RemoveAllWeapons(client);
                    for(new 
i=0i<=5i++)
                    {
                        
TF2_RemoveWeaponSlot(clienti);
                    }
                    
GiveWeapon(client"ReinhartShield");
                    
SetEntPropFloat(clientProp_Data"m_flMaxspeed"95.0);
                    
g_reinbreak[client] = true
I script sourcemod like this, but projectile go through the shield

How to fix it?
NC.svtrade 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 02:44.


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