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

Shadow under player when changing model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bulletford
Junior Member
Join Date: Apr 2015
Old 06-18-2017 , 15:05   Shadow under player when changing model
Reply With Quote #1

PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawnEventHookMode_Post);
}

public 
Action Event_PlayerSpawn(Handle event, const char[] namebool dontBroadcast
{

    
int client GetClientOfUserId(GetEventInt(event"userid"));

    
SetEntProp(clientProp_Send"m_nModelIndex",  PrecacheModel("models/player/tm_anarchist.mdl")); 


Tried delaying it and precaching it on map start, somebody suggested that it has something to do with csgo's ambient occlusion placing a model under the player and that you can change or delete the model...not sure never heard of that model.

Bulletford 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 20:31.


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