|
|
Rank: The Illuminist

Groups: Administration
Joined: 5/8/2006 Posts: 8,410 Points: 2,875 Location: Seattle
|
lol thanks a lot dude! It's great to hear from you, by the way!
|
|
|
Rank: Not Cool Enough for a Rank :(

Groups: {pDs} Member, Server Admin, WDFNews.com Official Mapper
Joined: 5/9/2006 Posts: 2,540 Points: 12 Location: ?
|
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
[server.dll for Version 23] 32 players max: L00409280: mov eax,[esp+0C] ; 8B44240C L00409284: mov ecx,[esp+04] ; 8B4C2404 L00409288: mov edx,[esp+08] ; 8B542408 L0040928C: mov [eax],00000002 ; C70002000000 minplayers/defaultMaxPlayers L00409292: mov [ecx],00000002 ; C70102000000 minplayers/defaultMaxPlayers L00409298: mov [edx],00000010 ; C70210000000 maxplayers L0040929E: retn 000C ; C20C00 to L00409280: mov eax,[esp+0C] ; 8B44240C L00409284: mov ecx,[esp+04] ; 8B4C2404 L00409288: mov edx,[esp+08] ; 8B542408 L0040928C: mov [eax],00000002 ; C70002000000 L00409292: mov [ecx],00000002 ; C70102000000 L00409298: mov [edx],00000020 ; C70220000000 L0040929E: retn 000C ; C20C00
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
[server.dll for Version 23] 1 combine ball limit: L0040A5AF: push (d) +08 ; 6A08 L0040A5B1: push (d) +04 ; 6A04 L0040A5B3: push (d) +00 ; 6A00 L0040A5B5: push (d) +00 ; 6A00 L0040A5B7: push (d) +03 ; 6A03 L0040A5B9: push (d) +00 ; 6A00 L0040A5BB: push (d) +00 ; 6A00 L0040A5BD: push (d) +00 ; 6A00 L0040A5BF: push 04000000 ; 6800000004 L0040A5C4: push *this.((off32)005E66FC) ; ->"AR2AltFire" ; 68FC665E22 L0040A5C9: mov ecx,*this.((off32)0079A280); ->"p1t1x1|1" ; B980A27922 L0040A5CE: calln L000C5EB0 ; E8DDB8CBFF to L0040A5AF: push (d) +08 ; 6A08 L0040A5B1: push (d) +04 ; 6A04 L0040A5B3: push (d) +00 ; 6A00 L0040A5B5: push (d) +00 ; 6A00 L0040A5B7: push (d) +01 ; 6A01 L0040A5B9: push (d) +00 ; 6A00 L0040A5BB: push (d) +00 ; 6A00 L0040A5BD: push (d) +00 ; 6A00 L0040A5BF: push 04000000 ; 6800000004 L0040A5C4: push *this.((off32)005E66FC) ; ->"AR2AltFire" ; 68FC665E22 L0040A5C9: mov ecx,*this.((off32)0079A280); ->"p1t1x1|1" ; B980A27922 L0040A5CE: calln L000C5EB0 ; E8DDB8CBFF
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
Note: Make sure you set sv_maxspeed according to your modified speed
[server.dll for Version 23] Sprint Speed: L00318766: push *this.((off32)0061CDA0) ; ->"HL2Player.SprintStart" ; 68A0CD6122 L0031876B: push eax ; 50 L0031876C: call (d) [edx+48] ; FF5248 L0031876F: push eax ; 50 L00318770: lea eax,[esp+3C] ; 8D44243C L00318774: push eax ; 50 L00318775: calln L00274390 ; E816BCF5FF L0031877A: add (d) esp,+18 ; 83C418 L0031877D: push 43A00000 ; 680000A043 HL2_SPRINT_SPEED(320.0f)
Normal Speed: L00318816: mov [esi],433E0000 ; C70600003E43 HL2_NORM_SPEED(190.0f)
# Walk Speed is client side effect.
Reference: IEEE 754 Converter http://www.h-schmidt.net/FloatApplet/IEEE754.html
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
[server.dll for Version 23] SMG1 Grenade modifier: L0042A5E2: push 42C80000 ; 680000C842 SMG1_GRENADE_DAMAGE(100.0f) L0042A5E7: mov ecx,ebx ; 8BCB L0042A5E9: call (d) [edx+000001D0] ; FF92D0010000 L0042A5EF: mov eax,[ebx] ; 8B03 L0042A5F1: push 437A0000 ; 6800007A43 SMG1_GRENADE_RADIUS(250.0f)
|
|
|
Rank: The Illuminist

Groups: Administration
Joined: 5/8/2006 Posts: 8,410 Points: 2,875 Location: Seattle
|
I love the fact that Kusa shows up randomly as there is a hl2mp release and knows all the code we want for the dll. Dude, you are my hero. Thanks, Kusa!
|
|
|
Rank: Fuckstick
Groups: {pDs} Member, Server Admin
Joined: 5/9/2006 Posts: 775 Points: 381
|
Kusa must be a computer.
|
|
|
Rank: Fecal Impaction For the Win!

Groups: Newsie, Registered User
Joined: 6/16/2006 Posts: 1,301 Points: 1,263
|
Kusa, is there any way you could maybe walk me through editing for 1 hit kill crowbar/stunstick? I am the fail at this. {pDs} Lead Salad: bike why did you change your name Jessica343: so I can get heals {pDs} Lead Salad: oh damn good idea {pDs} Lead Salad has changed their name to {pDs} Lead Salad (is a girl) Jessica343: hahah
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
GivePeaceAChance,
Here's a snippet from my pm sent box:
They get the weapon data from /scripts/weapon_[weapon name].ctx files. The files itself are encypted, so you have to decrypt to modify the data (and re-encrypt to restore after modifying).
To get the data, see this URL: http://developer.valvesoftware.com/wiki/Vice
Keep in mind client-side also has same .ctx files (stored in half-life 2 deathmatch.gcf), so if you modify the data which also refers on client-side, the game will conflict between server and client. So don't think you can modify the data other than "damage."
Here's decrypted files for easy use: http://www.gamerzunlimited.com/KUSA/server_dll_v19/weapon_scripts.zip
|
|
|
Rank: Fecal Impaction For the Win!

Groups: Newsie, Registered User
Joined: 6/16/2006 Posts: 1,301 Points: 1,263
|
Are these scripts compatible with the version 23 of the server.dll? I noticed the directory of the link had them under version 19. So I basically edit the damage value in these scripts and encrypt them again? I see damage values that can be changed in scripts for the pistol and shotgun and such, but not for the stick or crowbar, so what values in these script exactly would I be changing (or adding)? {pDs} Lead Salad: bike why did you change your name Jessica343: so I can get heals {pDs} Lead Salad: oh damn good idea {pDs} Lead Salad has changed their name to {pDs} Lead Salad (is a girl) Jessica343: hahah
|
|
|
Rank: The Illuminist

Groups: Administration
Joined: 5/8/2006 Posts: 8,410 Points: 2,875 Location: Seattle
|
We use the script files to change the damamge for the xbow and other crap.. I know Sirus had to edit the server.dll to get the crowbar and stick damage up.
|
|
|
Rank: Fecal Impaction For the Win!

Groups: Newsie, Registered User
Joined: 6/16/2006 Posts: 1,301 Points: 1,263
|
Yeah, I have decompiled the server.dll but I cannot find any floater or value containing GetDamageForActivity. I'm lost and tired. {pDs} Lead Salad: bike why did you change your name Jessica343: so I can get heals {pDs} Lead Salad: oh damn good idea {pDs} Lead Salad has changed their name to {pDs} Lead Salad (is a girl) Jessica343: hahah
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
My bad, I forgotten these values are hard coded.
[server.dll for Version 23] Crowbar modifier: L0057E128: dd 41C80000h, ; 0000C841 GetDamageForActivity(25.0f)
L005B9204: dd 3ECCCCCDh, ; CDCCCC3E CROWBAR_REFIRE(0.4f)
Stunstick modifier: L00596754: dd 42200000h, ; 00002042 GetDamageForActivity(40.0f)
L0057D894: dd 3F4CCCCDh, ; CDCC4C3F STUNSTICK_REFIRE(0.8f)
|
|
|
Rank: Advanced Member
Groups: Registered User
Joined: 9/23/2006 Posts: 63 Points: 0
|
[server.dll for Version 29] 32 players max: L00409670: mov eax,[esp+0C] ; 8B44240C L00409674: mov ecx,[esp+04] ; 8B4C2404 L00409678: mov edx,[esp+08] ; 8B542408 L0040967C: mov [eax],00000002 ; C70002000000 minplayers/defaultMaxPlayers L00409682: mov [ecx],00000002 ; C70102000000 minplayers/defaultMaxPlayers L00409688: mov [edx],00000010 ; C70210000000 maxplayers L0040968E: retn 000C ; C20C00 to L00409670: mov eax,[esp+0C] ; 8B44240C L00409674: mov ecx,[esp+04] ; 8B4C2404 L00409678: mov edx,[esp+08] ; 8B542408 L0040967C: mov [eax],00000002 ; C70002000000 L00409682: mov [ecx],00000002 ; C70102000000 L00409688: mov [edx],00000020 ; C70220000000 L0040968E: retn 000C ; C20C00
|
|
|
| Users browsing this topic |
|
Guest
|