raknetEmulRpcReceiveBitStream(113, bs)

chapo

tg/inst: @moujeek
Автор темы
Модератор
9,075
12,037
Версия MoonLoader
.026-beta
Что тут не так? Почему ничего не происходит?

Lua:
function shield(pid)
    local bs = raknetNewBitStream()
    
    raknetBitStreamWriteInt16(bs, pid) --player id
    raknetBitStreamWriteInt16(bs, 1) --хуета какая-то
    raknetBitStreamWriteBool(bs, true) --create
    raknetBitStreamWriteInt16(bs, 42214) --model
    raknetBitStreamWriteInt16(bs, 32768)  --bone

    raknetBitStreamWriteFloat(bs, 0) --offset x
    raknetBitStreamWriteFloat(bs, 0) --offset y
    raknetBitStreamWriteFloat(bs, 0) --offset z

    raknetBitStreamWriteFloat(bs, 0) --rotation x
    raknetBitStreamWriteFloat(bs, 0) --rotation y
    raknetBitStreamWriteFloat(bs, 0) --rotation z

    raknetBitStreamWriteFloat(bs, 0) --scale x
    raknetBitStreamWriteFloat(bs, 0) --scale y
    raknetBitStreamWriteFloat(bs, 0) --scale z

    raknetBitStreamWriteInt32(bs, -1) --color1
    raknetBitStreamWriteInt32(bs, -1) --color2

    raknetEmulRpcReceiveBitStream(113, bs)
    raknetDeleteBitStream(bs1)
end
 

batonkal

Известный
4
0
Did you write the wrong amount of bytes?

raknetBitStreamWriteInt16 (bs, 1) - what the fuck -> raknetBitStreamWriteInt32 (bs, 1)
raknetBitStreamWriteInt16 (bs, 42214) --model -> raknetBitStreamWriteInt32 (bs, 42214)
raknetBitStreamWriteInt16 (bs, 32768) --bone -> raknetBitStreamWriteInt32 (bs, 32768)