Is there any way to access the properties of PlayerPawn using ModifyLogin function of mutator??
Background Story:
I am trying to make a mutator which will assign song when Level.Song == None, otherwise it will simply destroy itself.
Mutator has config string which will then Dynamic Load Object the music and calling ClientSetMusic() function of PlayerPawn to play the music.
I don't think this is possible by ModifyLogin() too, (correct me I am wrong!) because ModifyLogin() is called, when client is still connecting to server like downloading stuff, etc and not connected to server (PostLogin).
Or is there any way to call PostLogin in mutator??
Seriously, who likes to play the game without music?? Well I don't.
Accessing PlayerPawn in ModifyLogin()??
- papercoffee
- Godlike
- Posts: 10443
- Joined: Wed Jul 15, 2009 11:36 am
- Personal rank: coffee addicted !!!
- Location: Cologne, the city with the big cathedral.
- Contact:
Re: Accessing PlayerPawn in ModifyLogin()??
In the past I disabled the music ...but I missed something ...the atmosphere was duller.
But many people like it that way. Most competitive player disable it to hear the opponent better.
Regarding planned Mutator.
Question1: Is everyone, who connect to the server, listening then the same music?
Question2: Are people, who don't like to hear the music and switch it off, forced to listen it?
But many people like it that way. Most competitive player disable it to hear the opponent better.
Regarding planned Mutator.
Question1: Is everyone, who connect to the server, listening then the same music?
Question2: Are people, who don't like to hear the music and switch it off, forced to listen it?
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Accessing PlayerPawn in ModifyLogin()??
Grab the code for the PostalBabes I did. In it is a way to stop all other level musics and then dynamically assign your music to all the players. It has an ini file you can use to make your assignments so you don't have to recode to change your songs whenever you want. This isn't a hard thing to accomplish, just follow how I did it. BTW you can also assign this per player too. Your music doesn't have to be my music, but that's a discussion for another day.
If you need help Rocky just email me. I don't check in here nearly as often as I used to.
If you need help Rocky just email me. I don't check in here nearly as often as I used to.
So long, and thanks for all the fish
- sektor2111
- Godlike
- Posts: 6403
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Accessing PlayerPawn in ModifyLogin()??
In MH2 I have a SongKeeper or such (cannot recall all details). It keeps song changed in game even for new comers fresh joined.
It's based on player StartTime from PlayerReplicationInfo if I'm not mistaking.
It's based on player StartTime from PlayerReplicationInfo if I'm not mistaking.
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Accessing PlayerPawn in ModifyLogin()??
Good to see you Nels. Hope things are OK my friend
So long, and thanks for all the fish
- sektor2111
- Godlike
- Posts: 6403
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Accessing PlayerPawn in ModifyLogin()??
Yeah things are good at this moment I see a dude experienced in recovering bad geometry.JackGriffin wrote:Good to see you Nels. Hope things are OK my friend
I think ClientSetMusic() can be used combined with a sort of actor owned by player. Actor can track player and set a boolean if music has been added... at end of match get rid of it. Hint: Mutator spawning trackers must be there for new comers too. You cannot get rid of it in next second because the rest of players coming later before end won't have music.
-
- Masterful
- Posts: 542
- Joined: Tue Jan 22, 2013 5:23 pm
- Personal rank: Nullified!
- Location: (X) Unable To Locate....
Re: Accessing PlayerPawn in ModifyLogin()??
Yes, same music.Papercoffee wrote:Regarding planned Mutator.
Question1: Is everyone, who connect to the server, listening then the same music?
Nope, client has the right whether they want to listen or not!Papercoffee wrote:Question2: Are people, who don't like to hear the music and switch it off, forced to listen it?
My main goal is to play music only if map has no default music set. I don't like it, when the music-less map is loaded and when you press Esc button and default menu music is played or if you are having oldskool which gives you liberty to set your default menu music.
Thanks I will take a look at PostalBabes.JackGriffin wrote:Grab the code for the PostalBabes I did. In it is a way to stop all other level musics and then dynamically assign your music to all the players. It has an ini file you can use to make your assignments so you don't have to recode to change your songs whenever you want. This isn't a hard thing to accomplish, just follow how I did it. BTW you can also assign this per player too. Your music doesn't have to be my music, but that's a discussion for another day.
Sure, but your health is first priority, then comes my doubts.JackGriffin wrote:If you need help Rocky just email me. I don't check in here nearly as often as I used to.
I think this SongKeeper is what I needed. Thanks! Can you put your ZIP here??Sektor2111 wrote:In MH2 I have a SongKeeper or such (cannot recall all details). It keeps song changed in game even for new comers fresh joined.
It's based on player StartTime from PlayerReplicationInfo if I'm not mistaking.
- sektor2111
- Godlike
- Posts: 6403
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Accessing PlayerPawn in ModifyLogin()??
No, I cannot double-posting to break rules, see "MH attached types" thread or such closer name, it links to an old MH2 version which I think has the feature, else I'll send you something much updated (related to more tweaks).Rocky wrote:I think this SongKeeper is what I needed. Thanks! Can you put your ZIP here??
Edit:If everything worked fine you might see a PM around...