AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can we give players new Anims ? ? ? (https://forums.alliedmods.net/showthread.php?t=99385)

Costin83 08-04-2009 16:52

Can we give players new Anims ? ? ?
 
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.

xPaw 08-04-2009 17:06

Re: Can we give players new Anims ? ? ?
 
Imp.

Drak 08-04-2009 17:35

Re: Can we give players new Anims ? ? ?
 
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.

joaquimandrade 08-04-2009 17:36

Re: Can we give players new Anims ? ? ?
 
Quote:

the round play a random dance animation on winning team players.
I want that too

Costin83 08-04-2009 18:06

Re: Can we give players new Anims ? ? ?
 
Quote:

Originally Posted by Drak (Post 890342)
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 :D

Exolent[jNr] 08-04-2009 21:11

Re: Can we give players new Anims ? ? ?
 
Quote:

Originally Posted by Costin83 (Post 890370)
This is how Source engine animate player models on CS:S :D

We are not using the Source engine, now are we?

Tirant 08-04-2009 22:57

Re: Can we give players new Anims ? ? ?
 
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.

Costin83 08-04-2009 23:18

Re: Can we give players new Anims ? ? ?
 
Quote:

Originally Posted by Tirant (Post 890506)
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... )

Tirant 08-05-2009 00:50

Re: Can we give players new Anims ? ? ?
 
ya sure, that could work. Just place the animations you want after the cs required ones and u'll be fine.

Costin83 08-05-2009 05:10

Re: Can we give players new Anims ? ? ?
 
Well that was the answer I was expecting Tirant :mrgreen:
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 (Post 890290)
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....


All times are GMT -4. The time now is 18:20.

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