In my map I have added the origins viewhands but believe that I have edited the _loadout.gsc incorrectly as all characters have the same viewhands when playing co-op. How would I go about giving each player a different set of viewhands instead of all players having the same viewhands?
here is my _loadout.gsc for those interested, the four sets of viewhands I'm using are called "dempsey_viewhands", "nikolai_viewhands", "takeo_viewhands", "richtofen_viewhands": http://pastebin.com/7MuxYGUQ
Since self is defined (being the player) you can use self.entity_num to manually set the viewhands yourself in the line at the bottom (755) do something like this instead
Code Snippet
Plaintext
// MikeD (3/28/2008): If specified, give the player his hands if( IsDefined( level.player_viewmodel ) ) { vm = undefined; switch( self.entity_num ) { case 0: vm = "hands1"; break; case 1: vm = "hands2"; break; case 2: vm = "hands3"; break; case 3: vm = "hands4"; break; } if(IsDefined(vm)) self SetViewModel( vm ); else self SetViewModel( level.player_viewmodel ); }
Since self is defined (being the player) you can use self.entity_num to manually set the viewhands yourself in the line at the bottom (755) do something like this instead
Code Snippet
Plaintext
// MikeD (3/28/2008): If specified, give the player his hands if( IsDefined( level.player_viewmodel ) ) { vm = undefined; switch( self.entity_num ) { case 0: vm = "hands1"; break; case 1: vm = "hands2"; break; case 2: vm = "hands3"; break; case 3: vm = "hands4"; break; } if(IsDefined(vm)) self SetViewModel( vm ); else self SetViewModel( level.player_viewmodel ); }
So I finally got around to trying this, unfortunately it hasn't seemed to work. All players still had Dempsey's viewhands. Was I supposed to replace the "vm" text with my viewhands model or the "hands1-4" text with the viewhands model? Does anyone have any other ideas?
Last Edit: March 29, 2016, 11:38:34 pm by RichGaming
So I finally got around to trying this, unfortunately it hasn't seemed to work. All players still had Dempsey's viewhands. Was I supposed to replace the "vm" text with my viewhands model or the "hands1-4" text with the viewhands model? Does anyone have any other ideas?
No make sure you only have one and that's in map or specifically patch since you can rebuild it easily.
Try placing it in mod iwd and see if that does anything
So it's not supposed to be in my _loadout.gsc in the first place? Now I'm really confused. Where do I need to place the script that you gave me? Is all that I need to do is paste that script somewhere or is there other steps involved?
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time