Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Set_Animation(params);
Set_Animation(params); [message #441417] Mon, 13 December 2010 03:30 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
When you force a player to perform an animation (such as the taunts in SSGM) you put them into a different state; They take no damage and cannot use their weapons or indeed move (control of the player is temporarily lost until the animation is finished).

Is there any way to stop them from entering that state, or remove the effects of that state while still playing the animation?

I do not care if the only way to accomplish this is a hack. I am just curious if it can be done, and if so, then how it can be done.



Re: Set_Animation(params); [message #441418 is a reply to message #441417] Mon, 13 December 2010 04:08 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Look around for something to set the Human State parameter of the infantry unit, it might be something to do with that. Although, if it is, then changing it back might halt the animation anyway.




One (EXREMELY HACKY) solution if you can't find anything else that works would be to make the infantry unit invisible, spawn a COPY of the infantry unit, disable the copys collision settings, attach it to the original infantry unit (so they move together) and run the animation on that copy instead, and once the animation completes delete the copy and set the original infantry back to visible.

Yes, it would be an incredibly ugly and dirty hack, but it should get the job done (the invisible original infantry would still take damage, although the collision meshes would not line up perfectly with the mesh positions of the animated one... shooting for the body in this instance would work well)


http://steamsignature.com/card/1/76561197975867233.png
Re: Set_Animation(params); [message #442260 is a reply to message #441418] Thu, 06 January 2011 17:13 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
4.0 should have fixed this if I remember correctly, otherwise the only hack to make it works only works for the host of the game, you'd have to create a bunch of Remote Process Calls to the client to make it work for them.

Edit: And in my method the infantry would still be unable to move, just use their gun and take damage.


[Updated on: Thu, 06 January 2011 17:14]

Report message to a moderator

Previous Topic: quick question on vehicles
Next Topic: Proximity C4 Damage
Goto Forum:
  


Current Time: Mon Nov 18 09:19:18 MST 2024

Total time taken to generate the page: 0.00633 seconds