Ayuto / EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.
16 stars 9 forks source link

playerset viewcoord #12

Closed kamikazekuh closed 6 years ago

kamikazekuh commented 6 years ago

I was testing playerget and playerset viewcoord with this code:

event player_say
{
    if (event_var(text) = "test") do
    {
        es playerget viewcoord event_var(userid) wcs_x1 wcs_y1 wcs_z1
            }
    if (event_var(text) = "test2") do
    {
        es playerset viewcoord event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
    }   
}

playerget viewcoord returns the same results as Player.view_coordinates.

But playerset viewcoord does not set it to the location it should.

getting the location

setting the location

Ayuto commented 6 years ago

It also does not seem to work properly in the original ES when testing with CS:S.

Ayuto commented 6 years ago

I decided to not fix it, because it's a bug in ES, not the emulator.