Please Support RGN
Donate Today!!

 


 

Go Back   Raiders Game Net > RGN Map/Mod Center > CoD Series Mods Discussion

CoD Series Mods Discussion Have mod? Want to share a Mod or info?

Reply
 
Thread Tools Display Modes

xanim via scripts
  #1  
Old 07-11-2010, 01:39 PM
irishstorm irishstorm is offline
CPL
 
Join Date: Mar 2009
Location: Enniscorthy, IE
Age: 20
Posts: 59
Rep Power: 18
irishstorm is on a distinguished road
Default xanim via scripts

for the past few days i have been trying to make xanim's play on the cod4 minigun that i have in codwaw sp and i'm trying to make the barrel spin,

this is the code

Code:
self.barrelspin = SetAnim( %minigun_spin_loop, 1, 1, 0.1, 1 );
self.barrelspin LinkTo( self.minigun, "j_spin", (0,0,0), (0,0,0) );
and i am using #using_animtree("script_model");
because the cod4 anims are in there.

anyone know what i'm doing wrong?
__________________
Glaine ár gcroí Neart ár ngéag
Agus beart de réir ár mbriathar

ModByte.se
Reply With Quote
 

  #2  
Old 07-11-2010, 05:56 PM
zeroy's Avatar
zeroy zeroy is offline
..
 
Join Date: Dec 2007
Location: Louth, IE
Age: 34
Posts: 2,946
Rep Power: 0
zeroy is infamous around these partszeroy is infamous around these partszeroy is infamous around these partszeroy is infamous around these partszeroy is infamous around these parts
Default

SetAnim is not a MP function - its SP only. To move the barrel when shooting why not use the normal firing animation for that weapon?
Reply With Quote
 

  #3  
Old 07-11-2010, 07:09 PM
irishstorm irishstorm is offline
CPL
 
Join Date: Mar 2009
Location: Enniscorthy, IE
Age: 20
Posts: 59
Rep Power: 18
irishstorm is on a distinguished road
Default

Quote:
Originally Posted by zeroy View Post
SetAnim is not a MP function - its SP only. To move the barrel when shooting why not use the normal firing animation for that weapon?
its not a actual weapon file its a misc_turret ,its meant to be a auto turret for nazi zombies but i cant seem to get the barrel to spin, i've even took the code from cod4 sp and put it in a it didn't move either

Code:
-----Snip----
    self.turret_bipod = spawn( "script_model", pos );
    self.turret_gun = spawnTurret( "misc_turret", pos + (0,0,30) , weaponinfo );
    self.turret_gun setModel( "weapon_minigun" );
    self.turret_bipod setModel( "turret_bipod" );
-----Snip----
cod4 code
Code:
#using_animtree( "script_model" );
minigun_anim()
{
    level.scr_anim[ "minigun" ][ "spin_idle" ][ 0 ]        = %minigun_spin_idle;
    level.scr_anim[ "minigun" ][ "spin_loop" ][ 0 ]        = %minigun_spin_loop;
    level.scr_anim[ "minigun" ][ "spin" ]                = %minigun_spin_loop;
    level.scr_anim[ "minigun" ][ "spin_start" ]            = %minigun_spin_start;
    level.scr_animtree[ "minigun" ]                     = #animtree;    
    level.scr_model[ "minigun" ]                         = "weapon_minigun";
}
__________________
Glaine ár gcroí Neart ár ngéag
Agus beart de réir ár mbriathar

ModByte.se
Reply With Quote
 
Reply

Bookmarks

Thread Tools
Display Modes

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 05:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Copyright © RGN, Raiders Game Net