Raised This Month: $ Target: $400
 0% 

Player model inside a giant ball model?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wicked95
Member
Join Date: Dec 2012
Old 07-20-2013 , 11:31   Re: Player model inside a giant ball model?
Reply With Quote #10

Something like this?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
 
new gBall[33];
 
public 
plugin_init() {
register_plugin(" "" "" ");
RegisterHam(Ham_Spawn"id""player_spawn"1);
}
 
public 
plugin_precache() {
precache_model("models/GiantBall.mdl");
}
 
public 
player_spawn(id) {
if(!
is_user_alive(id))
{
return 
PLUGIN_HANDLED;
}
SetBall(id)
return 
PLUGIN_HANDLED;
}
 
public 
SetBall(id) {
gBall[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
set_pev(gBall[id], pev_movetypeMOVETYPE_FOLLOW)
set_pev(gBall[id], pev_aimentid)
set_pev(gBall[id], pev_rendermodekRenderNormal)
engfunc(EngFunc_SetModelgBall[id], "models/GiantBall.mdl")

It compiles well but i don't have the ball model to test it now.
wicked95 is offline
 



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 06:30.


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