Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
huge f*cking request list
#1
Wink 
This is a thread towards nukem, so if you got no idea where this is about then please GTFO
These are the log events B3 needs to run properly
Also some new plugin events that i desperatly need (especially onKill and onJoined)

Log events
First of all each log event MUST provide
- XUID
- CID
- Team
- Name

In this format if possible:
b3 doc Wrote:Join: J;160913;10;PlayerName
Quit: Q;160913;10;PlayerName
Damage by world: D;160913;14;axis;PlayerName;;-1;world;;none;6;MOD_FALLING;none
Damage by opponent: D;160913;19;allies;PlayerName;248102;10;axis;OpponentName;mp44_mp;27;MOD_PISTOL_BULLET;right_foot
Kill: K;160913;4;axis;PlayerName;578287;0;axis;OpponentName;kar98k_mp;180;MOD_HEAD_SHOT;head
Weapon/ammo pickup: Weapon;160913;8;PlayerName;m1garand_mp
Action: A;160913;16;axis;PlayerName;htf_scored
Say to All: say;160913;8;PlayerName;^Ubye
Say to Team: sayteam;160913;8;PlayerName;^Ulol
Private message: tell;160913;12;PlayerName1;1322833;8;PlayerName2;what message?
Winners: W;axis;160913;PlayerName1;258015;PlayerName2
Losers: L;allies;160913;PlayerName1;763816;PlayerName2

This format is not required, but would be the easiest way to go

It does not need to have all of them but at least
- Kill (WITH WEAPON, victim and attacker!)
- Say (a player chats)
- Join team
- User Join server
- User Disconnect server (also defined as quit)


Code events
onJoined(ServerClient *z)
onDisconnect(ServerClient *z)
onKilled(ServerClient *victim, ServerClient *attacker, PCHAR weapon)
onGameEnd
onGameStart
This is basically how B3 parses it
b3 code Wrote:# server events
re.compile(r'^(?P<action>[a-z]+):\s?(?P<data>.*)$', re.IGNORECASE),

# world kills
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9-]{1,2});(?P<team>[a-z]+);(?P<name>[^;]+);(?P<aguid>[^;]*);(?P<acid>-1);(?P<ateam>world);(?P<aname>[^;]*);(?P<aweap>[a-z0-9_-]+);(?P<damage>[0-9.]+);(?P<dtype>[A-Z_]+);(?P<dlocation>[a-z_]+))$', re.IGNORECASE),
# player kills/damage
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<team>[a-z]*);(?P<name>[^;]+);(?P<aguid>[^;]+);(?P<acid>[0-9]{1,2});(?P<ateam>[a-z]*);(?P<aname>[^;]+);(?P<aweap>[a-z0-9_-]+);(?P<damage>[0-9.]+);(?P<dtype>[A-Z_]+);(?P<dlocation>[a-z_]+))$', re.IGNORECASE),
# suicides (cod4/cod5)
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<team>[a-z]*);(?P<name>[^;]+);(?P<aguid>[^;]*);(?P<acid>-1);(?P<ateam>[a-z]*);(?P<aname>[^;]+);(?P<aweap>[a-z0-9_-]+);(?P<damage>[0-9.]+);(?P<dtype>[A-Z_]+);(?P<dlocation>[a-z_]+))$', re.IGNORECASE),
# suicides (cod7)
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<team>[a-z]*);(?P<name>[^;]+);(?P<aguid>[^;]*);(?P<acid>[0-9]{1,2});(?P<ateam>[a-z]*);(?P<aname>[^;]+);(?P<aweap>[a-z0-9_-]+);(?P<damage>[0-9.]+);(?P<dtype>[A-Z_]+);(?P<dlocation>[a-z_]+))$', re.IGNORECASE),

#team actions
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<team>[a-z]+);(?P<name>[^;]+);(?P<type>[a-z_]+))$', re.IGNORECASE),

# Join Team (cod5)
re.compile(r'^(?P<action>JT);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<team>[a-z]+);(?P<name>[^;]+)Wink$', re.IGNORECASE),

# tell like events
re.compile(r'^(?P<action>[a-z]+);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<name>[^;]+);(?P<aguid>[^;]+);(?P<acid>[0-9]{1,2});(?P<aname>[^;]+);(?P<text>.*))$', re.IGNORECASE),
# say like events
re.compile(r'^(?P<action>[a-z]+);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<name>[^;]+);(?P<text>.*))$', re.IGNORECASE),

# all other events
re.compile(r'^(?P<action>[A-Z]);(?P<data>(?P<guid>[^;]+);(?P<cid>[0-9]{1,2});(?P<name>[^;]+))$', re.IGNORECASE)
Reply

#2
b3 code is mindfuck, still it sucks
[Image: lQDUjba.jpg]
Reply

#3
(01-02-2012, 07:12)OrangePL Wrote: b3 code is mindfuck, still it sucks

regex is mindfuck

(01-01-2012, 10:52)Pozzuh Wrote: Can you make an 'on server command entered' type event? So I can add something that would happen if I type for example /pozzuh in the server console

Edit: And could you add something like /unloadplugin <name> so we don't have to close the server to paste our updated version of the plugin in? Big Grin
[Image: MaEIQ.png]
Reply

#4
@Pozzuh That would be cool as well.
Don't know if possible
Reply

#5
Also could you release the source of the unlimited ammo plugin
[Image: MaEIQ.png]
Reply

#6
(01-02-2012, 16:34)Pozzuh Wrote: Also could you release the source of the unlimited ammo plugin

Code:
SetClientDvar( [clientid], "player_sustainAmmo \"1\"" );

?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#7
(01-02-2012, 16:48)iAegle Wrote:
(01-02-2012, 16:34)Pozzuh Wrote: Also could you release the source of the unlimited ammo plugin

Code:
SetClientDvar( [clientid], "player_sustainAmmo \"1\"" );

?

It doesn't work like that, but @Pozzuh yeah as soon as I have time
[Image: b_560_95_1.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Request for Assistance with Modding COD: BO using Mod Tools one1lion 9 6,673 09-17-2013, 21:04
Last Post: one1lion
  [Request] Airdrop Heaven mod The_Reaper_1 0 2,452 09-10-2013, 14:13
Last Post: The_Reaper_1
  [Request] Request for !afk and !balance plugins. UlTiiMaTuM 3 3,572 09-10-2013, 02:13
Last Post: UlTiiMaTuM
  [Release] Huge Release.. Host lobbies with a BAN camxxcore 11 8,328 08-11-2013, 17:07
Last Post: SuperNovaAO
  Help Server not in list, but people join 99IRock 8 7,093 07-17-2013, 21:26
Last Post: clacki
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,799 06-27-2013, 13:35
Last Post: Yamato
  [Request] mw3 all map list ( aslo DLC) raminr63 5 14,963 06-18-2013, 19:50
Last Post: mn_acer1
Big Grin Killstreaks HUD list Puffiamo 9 9,931 06-18-2013, 18:42
Last Post: RaZ
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 3,114 06-03-2013, 10:38
Last Post: Yamato
  [REQUEST] Antinoob mod sleepunknot 3 3,125 05-15-2013, 20:10
Last Post: sleepunknot

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.