VPhysics
Hello again people,
Just a quick post to show off what I've been working on recently. I haven't had time to write up a single shred of documentation yet and the reason I'm posting this in this state is to get an idea on what developers want and so the more advanced people can have a play with it. All the natives map to corresponding functions in vphysics_interface.h from the HL2SDK, these are different for each game. So if you want to see what Valve have to say about a functions (there are only comments for a few though), grab the version of this file from the SDK for the engine you are using and have a read. Instructions:
Download Supports all games on all platforms. Thanks to Drunken_F00l and his SourceOP plugin for the ideas behind this and for the code snippet to get started. Extension Source Code |
Re: [PREVIEW] VPhysics
what a greate job! i will try it
|
Re: [PREVIEW] VPhysics
Nice!
|
Re: [PREVIEW] VPhysics
1. To get the .sp script to work you have to add this
Code:
#include <sdktools> 2. Working on Windows for HL2MP, some functions seem to crash the server on specific props |
Re: [PREVIEW] VPhysics
Coool :)
|
Re: [PREVIEW] VPhysics
Quote:
Quote:
As you can see my *_all commands loop through all physics entities and I was using these extensively on dm_lockdown (same as you, windows hl2mp). One thing I forgot to mention, a lot of the Is* natives don't do anything on the EP1 engine and will print an error to the console and return false. |
Re: [PREVIEW] VPhysics
Ninja'd. I was working on the same thing :p
|
Re: [PREVIEW] VPhysics
Quote:
|
Re: [PREVIEW] VPhysics
Well i think it wasnt actually props but prop_vehicle_drivables :P I typed !freeze_all, shot one of the vehicles with physcannon and the server crashed. Hope this helps you =)
|
Re: [PREVIEW] VPhysics
Tested follow versions and all seems to work:
- Left 4 Dead 2 Windows - Left 4 Dead 2 Linux - Left 4 Dead 1 Linux Tested the commands: sm_flip, sm_nograv_all, sm_grav_all, sm_freeze_all and sm_unfreeze_all. But in all version it seems that these commands not affect all "physical" entities. Computer monitors, cans, some boxes and all the trash on the ground will not be affected in both Left 4 Deads. |
All times are GMT -4. The time now is 11:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.