The following block of text needs to be installed in the following location:
addons\sourcemod\gamedata\sdktools.games\custom
Make a file called "game.pvkii.txt"
Insert the following text in that file:
*** Updated values by Viper (Tested and working)
CODE
"Games"
{
/* Pirates, Vikings and Knights II */
"pvkii"
{
"Offsets"
{
/* CBasePlayer */
"GiveNamedItem"
{
"windows" "352"
"linux" "353"
}
"RemovePlayerItem"
{
"windows" "239"
"linux" "240"
}
"Weapon_GetSlot"
{
"windows" "237"
"linux" "238"
}
"Ignite"
{
"windows" "194"
"linux" "195"
}
"Extinguish"
{
"windows" "198"
"linux" "199"
}
"Teleport"
{
"windows" "101"
"linux" "102"
}
"CommitSuicide"
{
"windows" "393"
"linux" "393"
}
"GetVelocity"
{
"windows" "131"
"linux" "132"
}
"EyeAngles"
{
"windows" "123"
"linux" "124"
}
"AcceptInput"
{
"windows" "35"
"linux" "36"
}
"DispatchKeyValue"
{
"windows" "29"
"linux" "28"
}
"DispatchKeyValueFloat"
{
"windows" "28"
"linux" "29"
}
"DispatchKeyValueVector"
{
"windows" "27"
"linux" "30"
}
"SetEntityModel"
{
"windows" "24"
"linux" "25"
}
"WeaponEquip"
{
"windows" "230"
"linux" "231"
}
"Activate"
{
"windows" "32"
"linux" "33"
}
"FireOutputBackup"
{
"windows" "6"
"linux" "10"
}
}
"Signatures"
{
"FireOutput"
{
"library" "server"
"windows" "\x81\xEC\x2A\x2A\x2A\x2A\x53\x55\x56\x8B\x71\x2A\x85\xF6\x57"
"linux" "
@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
}
}
}
You also need to edit the file in addons\sourcemod\gamedata\sdktools.games\engine.ep2.txt
Add:
CODE
"game" "pvkii"
Inside the following blocks:
/* General Temp Entities */
/* Create Entity Signatures */
/* CGlobalEntityList */
/* General GameRules */
You also need to edit the following file in addons\sourcemod\gamedata\core.games\common.games.txt
Add:
CODE
"game" "pvkii"
Inside the following blocks:
/* Which games need a radio menu timeout? */
Which games support HudMsg?
You also need to edit the following file in addons\sourcemod\gamedata\core.games\engine.ep2.txt
Add:
CODE
"game" "pvkii"
Inside the following blocks:
/* CGlobalEntityList */
Note this has been tested on Windows Only at this point.
Enjoy.
Comments
https://bugs.alliedmods.net/show_bug.cgi?id=4276
https://bugs.alliedmods.net/show_bug.cgi?id=4276
Only a few of them (linux CommitSuicide and some of the DispatchKeyValues) ones are incorrect. The correct offsets and other gamedata are indeed posted on that bug report in the form of a patch file which will hopefully be committed into SM's repository soon so that it will show up in the latest SM snapshots.
I wasn't aware of any KeyValue issues as all the commands worked at least on my previous build haven't tested this final release.
In any case I will update the post with the patch details, thanks.
LOL I noticed I still had pvkii-dev in the posted config
CustomFactor.com > Official PVK II #1 Beta 2.4 (-FF)
21 Players, 33 tick, Custom Maps & More
203.56.188.6:27019
CustomFactor.com > Official PVK II #1 Beta 2.4 (-FF)
21 Players, 33 tick, Custom Maps & More
203.56.188.6:27019
http://wiki.alliedmods.net/CPVK2Player_Offset_List_(Pirates,_Vikings,_and_Knights_II)
Had not changed since 2008.
Author of PVKII Randomizer
Author of PVKII WeaponsMaster
In my "engine.ep2.txt" there is no "Create Entity Signatures" section. However I found one titled "CBaseEntityOutput::FireOutput". Should I add the line there instead?
http://wiki.alliedmods.net/CPVK2Player_Offset_List_(Pirates,_Vikings,_and_Knights_II)
Cheers!
Author of PVKII Randomizer
Author of PVKII WeaponsMaster
https://wiki.alliedmods.net/CPVK2Player_Offset_List_(Pirates,_Vikings,_and_Knights_II)
Author of PVKII Randomizer
Author of PVKII WeaponsMaster
I never quite understood how you input this in and the "one less" for Windows
http://steamcommunit...m/groups/aclans Join and be pro today!
"I like axes"
--kokoronokawari
loli loli loli loli loli loli loli loli
For example, here is the declarations for WeaponsMaster:
Author of PVKII Randomizer
Author of PVKII WeaponsMaster