Raised This Month: $ Target: $400
 0% 

Can we give players new Anims ? ? ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 08-04-2009 , 16:52   Can we give players new Anims ? ? ?
Reply With Quote #1

I have some questions about player models and how does HL1 engine handles model animations.

I don't know if I posted in the correct place but it's a problem that is linked to amxx scripting because what I have in mind it's making a plugin that will give player new animations for example (obvoius I will not make anny plugins because I don't have knowledge in scripting)

In CS 1.6 there's a "player.mdl" model in cstrike\models dir.
I assume that this model is the basic model that HL1 engine uses for all calculations (hitboxex/animations/bones) regardless of the model that a player has choosen. It's like a "standard measure unit" let's say...

1Q: If a player that joins a server has custom player models that differs from server's (animations/hitboxex) how does HL1 engine handles the hitboxes, damage etc. ?

2Q: Is there any way that we can give a player model some new animations ? (Just like a "hat/head/beret/backweapon/parachute" model for example that is folowing a player model animation)

Explanation: Making a model that consists only of custom animations, precaching it and then with a plugin assign those animations to a player model and playing them at the right moment.

Other method: Making a custom player model including the custom animations (after the normal animations) that will replace user's player model and with the plugin playing the custom animations when needed.

Example of plugin that can make use of this functions:

Ex1: When the round ends and a team wins the round play a random dance animation on winning team players.

Ex2: Adding custom player knife animations and custom knife skins so we can have a "scrim fight" between two players.

Ex3: Giving players "sprint animations" and a key to bind for sprint

Ex4: Give players "climb animations" so when a player climb a ladder he will have a custom climb anim.

Ex5: Give player/weapons "holster & draw anims"

Etc... The possibilities are infinite.
Costin83 is offline
Send a message via Yahoo to Costin83
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-04-2009 , 17:06   Re: Can we give players new Anims ? ? ?
Reply With Quote #2

Imp.
__________________
xPaw is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 08-04-2009 , 17:35   Re: Can we give players new Anims ? ? ?
Reply With Quote #3

I've thought about this awhile ago. Having a model of just animations is possible. Even if the player has it on there computer, there would be no way of setting the animations from that file onto an existing model. There is one thing I haven't tried. Create an entity, set the model to the animations model. And snap it to a player with TE_ATTACHMENT.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-04-2009 , 17:36   Re: Can we give players new Anims ? ? ?
Reply With Quote #4

Quote:
the round play a random dance animation on winning team players.
I want that too
__________________
joaquimandrade is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 08-04-2009 , 18:06   Re: Can we give players new Anims ? ? ?
Reply With Quote #5

Quote:
Originally Posted by Drak View Post
I've thought about this awhile ago. Having a model of just animations is possible. Even if the player has it on there computer, there would be no way of setting the animations from that file onto an existing model. There is one thing I haven't tried. Create an entity, set the model to the animations model. And snap it to a player with TE_ATTACHMENT.
I don't know how TE_ATTACHMENT works but I believe you want to replace player model with an entity then give the entity somekind of attachment and the attachment will be the actual default player model ?

What about the second method: having the client download the new player model with the custom animations included then the plugin will play the custom animations at the right time ?

BTW:
Quote:
Even if the player has it on there computer, there would be no way of setting the animations from that file onto an existing model.
This is how Source engine animate player models on CS:S

Last edited by Costin83; 08-04-2009 at 18:08.
Costin83 is offline
Send a message via Yahoo to Costin83
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-04-2009 , 21:11   Re: Can we give players new Anims ? ? ?
Reply With Quote #6

Quote:
Originally Posted by Costin83 View Post
This is how Source engine animate player models on CS:S
We are not using the Source engine, now are we?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 08-04-2009 , 22:57   Re: Can we give players new Anims ? ? ?
Reply With Quote #7

You'd have to recompile the whole model. Source works differently where the models are all small because animations are stored on their own separate models. Players will have to dl the new models.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 08-04-2009 , 23:18   Re: Can we give players new Anims ? ? ?
Reply With Quote #8

Quote:
Originally Posted by Tirant View Post
You'd have to recompile the whole model. Source works differently where the models are all small because animations are stored on their own separate models. Players will have to dl the new models.
Yes I know, when I was talking about the custom player model (second method) I was aware that it will be needed to decompile/edit .qc file/add animations/compile model and stuff.... Also the model/s will need to precache/download for clients.

About the source engine.... sorry for pointing that out (it has absolutelly nothing to do with this thread... )

Last edited by Costin83; 08-04-2009 at 23:20.
Costin83 is offline
Send a message via Yahoo to Costin83
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 08-05-2009 , 00:50   Re: Can we give players new Anims ? ? ?
Reply With Quote #9

ya sure, that could work. Just place the animations you want after the cs required ones and u'll be fine.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 08-05-2009 , 05:10   Re: Can we give players new Anims ? ? ?
Reply With Quote #10

Well that was the answer I was expecting Tirant
Btw I assume you are familiar with animating HL1 player models by any chance ?

And about the first question ? Anyone has any ideas ?

Quote:
Originally Posted by Costin83 View Post
1Q: If a player that joins a server has custom player models that differs from server's (animations/hitboxex) how does HL1 engine handles the hitboxes, damage etc. ?
I've noticed that ZP mod has ALOT of custom player models....
Costin83 is offline
Send a message via Yahoo to Costin83
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 18:20.


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