Posted by: LunarWolfX
Date posted: Jul 17 2005 User Rating: 4.3 out of 5.0 | Number of views: 3473 Number of comments: 5 | Description: allows players to pick up objects with +use in multiplayer. |
I'm not sure if this works for the sdk from scratch, but it works for the hl2dm sdk.
Open up hl2mp_player.cpp inside the server code(hl.dll).
Scroll down until you find this:
| | | void CHL2MP_Player::PickupObject( CBaseEntity *pObject, bool bLimitMassAndSize ) { }
|
Turn that into this:
| | | void CHL2MP_Player::PickupObject( CBaseEntity *pObject, bool bLimitMassAndSize ) { BaseClass::PickupObject(pObject,bLimitMassAndSize); } | |
|
User Comments
Showing comments 1-5
it's server.dll
also... this would be just as good: void CHL2MP_Player::PickupObject( CBaseEntity *pObject, bool bLimitMassAndSize ) { BaseClass::PickupObject(pObject,bLimitMassAndSize); }Edited by ts2do on Jul 22 2005, 23:17:04
|
|
|
Awsome man thanks a lot. My mod depends on being able to do this. How difficult would it be to use a weapon while carrying objects? |
|
|
Mabye figure out a way to throw the picked up object, not as far as a gravity gun would but similar? |
|
Cool. I noticed that if you're holding a gun, and then pick up any form of ammo, and then fire, the game crashes (I think from an unreferenced point in memory)
Any idea how to solve this? |
|
I've been working on this a while. (I'm a noob to the entire HL coding scene)
It's alot more than just doing this, I've found if I press throw when holding something, it fires the gun I had out before I picked it up, but uses up no ammo.
There is ALOT of pickup code in the HL2SP files that aren't in the HL2MP files, I'm currently going through it all trying to put it back...But lately I've managed to fubar the code, so that it won't pick stuff up at all any more :( |
|
You must register to post a comment. If you have already registered, you must login.
|
296 Approved Articless
5 Pending Articles
3940 Registered Members
0 People Online (12 guests)
|
|