ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.68k stars 623 forks source link

Angle and Size #426

Open Xalus opened 11 years ago

Xalus commented 11 years ago

Not sure if its a bug, and if it isnt, Take it as a request.

If you create an entity, you put size (min & max) on it, model, ...

But if you change the angle of your entity the solid part (that you puted with size) stays same. So your model is standing for example / but the solid part stays |.

So is it possible to let Size move with angle, or put a new function like solidangle or anything,

Thanks

alfred-valve commented 11 years ago

Can you post some screenshots/code showing your issue in detail please.

Xalus commented 11 years ago

Will do after all these crashes are solved...

Mod_LoadBrushModel: models/gamemaker/honey.mdl has wrong version number (1329865020 should be 30)

Error: could not load file �rites/voiceicon.spr Model �rites/voiceicon.spr not found and not available from server Cannot continue without model �rites/voiceicon.spr, disconnec

Xalus commented 11 years ago

Solved this BrushModel by reinstalling CS.

Now back to the topic, I made some pictures for you, to explain the problem..

So what I did was creating a block: http://cloud.steampowered.com/ugc/596996176032341325/18B87DECFFDB9B6EE0A7920D21C830C967CD6AB7/

After that I setted a different angle on the block ( \ ) http://cloud-2.steampowered.com/ugc/596996176032346403/50E70135F51EE1EB942C37041DCC96C42B97510C/ http://cloud-2.steampowered.com/ugc/596996176032355705/18D9A14480139767310EC81A0F9035F4B2EF4377/

Like you see; The solid part were player stands on, doesnt change with the angle.

I hope you can fix, or say a way we can make the solid change with the model

Xalus commented 11 years ago

The code I used for it:

include

include

include

define PLUGIN "Angle test"

define VERSION "1.0"

define AUTHOR "Xalus"

public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say angle", "Cmd_Angle")

} public Cmd_Angle(id) { new ent, body get_user_aiming(id, ent, body)

if(pev_valid(ent))
{
    new Float:flAngle[3]
    pev(ent, pev_angles, flAngle, 3)

    flAngle[2] = 45.0

    set_pev(ent, pev_angles, flAngle)
    set_pev(ent, pev_v_angle, flAngle)
    set_pev(ent, pev_fixangle, 1)
    set_pev(ent, pev_punchangle, 1)

    client_print(0, print_center, "Angle setted")
}

}

Tried fixangle, punchangle, ... to make find a way it would work. But it doesnt