Raised This Month: $ Target: $400
 0% 

Player model inside a giant ball model?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wicked95
Member
Join Date: Dec 2012
Old 07-18-2013 , 07:18   Player model inside a giant ball model?
Reply With Quote #1

Is it possible?
And maybe the ball to spin when player moves too
Somethig like this http://static.guim.co.uk/sys-images/...lking--007.jpg (random chosen from google images)
I don't have the giant ball model but it shouldn't be hard to make if it's just a giant ball...
Or i'll have to combine the ball model with the player model to make one model?

Last edited by wicked95; 07-18-2013 at 07:23.
wicked95 is offline
Old 07-18-2013, 13:59
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 07-18-2013 , 14:07   Re: Player model inside a giant ball model?
Reply With Quote #2

Quote:
Originally Posted by LordOfNothing View Post
I dont now how , but its posibile you just need a simple plugin and a big models )
You really don't know xD, first of all ball must be separate of Player body if aren't separated.... player can't walk in ball and the ball does not rotate
__________________
I Hate people who can hate me !
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-18-2013 , 22:04   Re: Player model inside a giant ball model?
Reply With Quote #3

search how to create an entity.
then search what are velocity and angles.
Basically just seach, all things are already asked, you just have to find them.
.Dare Devil. is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-19-2013 , 06:45   Re: Player model inside a giant ball model?
Reply With Quote #4

Just create a model connected to a bone of the player model and set it as MOVETYPE_FOLLOW.
Backstabnoob is offline
_Pro_
Senior Member
Join Date: Mar 2012
Location: Argentina
Old 07-19-2013 , 07:43   Re: Player model inside a giant ball model?
Reply With Quote #5

You can make that model follow the player, seting the origin to the player to appear the player are inside of the ball, for this you should set SOLID_NOT To the ball entity. Sorry for my bad english, I speak spanish :C
_Pro_ is offline
Send a message via MSN to _Pro_ Send a message via Skype™ to _Pro_
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-19-2013 , 09:01   Re: Player model inside a giant ball model?
Reply With Quote #6

Quote:
Originally Posted by _Pro_ View Post
You can make that model follow the player, seting the origin to the player to appear the player are inside of the ball, for this you should set SOLID_NOT To the ball entity. Sorry for my bad english, I speak spanish :C
No
Backstabnoob is offline
wicked95
Member
Join Date: Dec 2012
Old 07-20-2013 , 03:21   Re: Player model inside a giant ball model?
Reply With Quote #7

Thank you all for the answers.
Quote:
Originally Posted by Backstabnoob View Post
Just create a model connected to a bone of the player model and set it as MOVETYPE_FOLLOW.
This in a plugin? I've never written such a thing.

Can the ball be just somekind of glow without a model? I know with glow there's no way it's gona move but it's gona be easyer for me cuz i've never made a model before and i don't know if i can make it

Last edited by wicked95; 07-20-2013 at 03:26.
wicked95 is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-20-2013 , 08:57   Re: Player model inside a giant ball model?
Reply With Quote #8

You can add a bone to the model and connect it to a different bone on the player model skeleton. Then, once you create the entity with the model and set its movetype and aiment like this:

Code:
set_pev( iEnt, pev_movetype, MOVETYPE_FOLLOW ) set_pev( iEnt, pev_aiment, id ) // where id is the index of player who should be inside the ball

the ball will be attached to the player, which unlike setting its origin on think, doesn't look laggy.

Check at how Hats do this. It's pretty easy to do, but you need to have basic 3ds max knowledge.
Backstabnoob is offline
wicked95
Member
Join Date: Dec 2012
Old 07-20-2013 , 11:31   Re: Player model inside a giant ball model?
Reply With Quote #9

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
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-21-2013 , 19:27   Re: Player model inside a giant ball model?
Reply With Quote #10

Should work, but don't forget to kill the entity upon player death.
Backstabnoob 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 06:30.


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