Jump to content


Photo

Close range weapon

mod

  • Please log in to reply
2 replies to this topic

#1 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 03 February 2021 - 09:11 PM

Hi to all!

I have some question about animations who worked witch close range

I found some scripts on weapon animations like: 
 

BeginScript
if CurDrawableIsCurrentTargetKindof("MONSTER") then
if GetClientRandomNumberReal(0,1) > 0.50 then
return ("FrontKick")
else
return ("KirkPunch")
end
else
if GetClientRandomNumberReal(0,1) > 0.50 then
return ("Punch")
else
return ("Punt")
end
end
EndScript

Ents attacking monsters with diffirent animations than usual

Any way to create animation who worked on close range?

I am found this, but i dont know hot to use them:

CurDrawableGetCurrentTargetDistance


#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 09 April 2021 - 11:02 AM

An oddly specific question 

Here is what I know , hopefully you get answers from this 

 

animations are controlled from Actions , done by the unit 

running activated the running animations etc , set by the Model condition of MOVING 

 

ATTACKING , and any model condition related to any ATTACK , is controlled by your WEAPONSET condition at any time , if you have multiple weapon sets like 

close range , long range etc 

 

so find the weaponset of the ents. , then find the the animations with any ATTACK in them 

you should be able to determine what animations are for close range , and what are for long range 

 

what you do with this information depends on your desires at this point 

If you want to replace them , you can , with a suitable anim 

if you want to delete a specific animation , you can , given that there are other choices , that is , delete 1 of 3 attack anim , leave the others 

 

if you want to create a specific weapon like a specialPower , and use an anim existing for it , you can 

this requires a bit of copy pasting and extra coding in the weapon 

 

if your a star and know how to use Renx and create brand new anims , that even better , but that’s like level 10 , , I am a level 5 , Renx user , so I can’t help with  that 


Edited by JUS_SAURON, 09 April 2021 - 11:03 AM.


#3 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 09 April 2021 - 04:44 PM

Thanks JUS_SAURON






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users