May 04 2024 22:14:28
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 5

· Members Online: 0

· Total Members: 1,129
· Newest Member: areen
Teamspeak 3
Last Seen Users
· Intruder09:01:57
· GONZO21:53:43
· Sully 1 day
· ozzy-ita 1 week
· areen 1 week
· The ACE 1 week
· Bonnfreddy 1 week
· hackepter 1 week
· WEZ 1 week
· Homi 2 weeks
· Terminator 2 weeks
· Silent Bob 2 weeks
· Highl@nder 4 weeks
· Jardacz 4 weeks
· desintegrator 4 weeks

View Thread: VCAA - Vietcong Auto Admin
Vietcong.Info » Vietcong General Discussion » General Discussion
Who is here? 1 Guest
Current Rating: (Total: 3 ratings)  
 Print Thread
VCAA - Vietcong Auto Admin
KostiCZ
Solar - Last Visit September 05 2011 17:14:07
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
DeadWish
yeah i know but we want such a thing...........
 
KostiCZ
I think Solar is not involved in VC anymore, he moved to newer games now.
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
DeadWish
Thats a shame we need someone with his skills, i know i haven'tShock
 
DeadWish
Roger that Sir
 
GoGs
Make ONE list of stuffs u need i will make autoadmin !!
SignatureGoGs
  x 2  x 2
 
KostiCZ
OK, few things we need:

- check players joined into game and their death, when killed don't allow rejoin (kick or kill them - for example kill by vcguard system from Brchi?)

- something like 60% rule, when more than half of team dead dont allow to join (kill or kick)

- check of players weapon (from console - killed by Player[AK47]), when enemy gun used write info (adminsay) that no enemy weapons allowed

- I think it is enough for now, if anybody can add something... But I think only first point (rejoiners) is critical.

Shock
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
  x 3
 
Teamrespawn.cz
DeadWish
Kosti, your right, thats what we need plz guys do your best. Im to stupid for this kind of action.FAW
  x 1
 
KostiCZ
If you will add something, pls copy this original post


- check players joined into game and their death, when killed don't allow rejoin (kick or kill them - for example kill by vcguard system from Brchi?)

- something like 60% rule, when more than half of team dead dont allow to join (kill or kick)

- check of players weapon (from console - killed by Player[AK47]), when enemy gun used write info (adminsay) that no enemy weapons allowed

- map change, if the map is won next map (maybe random change)

- 2 times try the map, then change to next
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
  x 1
 
Teamrespawn.cz
Brchi
I already talked with @GoGs. Im on VCGuard 5.0 now. It will be combined with vcaa functions, to make admins life easier for now.
Hopefully I can finish it this month.
  x 1  x 1
 
http://www.myCong.net
KostiCZ
Is possible to implement these things to your VCG?
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Brchi
Yes! At the moment Im thinking about a scheduling system... like:

anti dead-rejoin: Trigger: OnPlayerJoined / Condition: hasRecentlyJoined == true && wasRecentlyDead == true / Action: Kill Player
60% rule: Trigger: OnPlayerJoined / Condition: curPlayersDead > curPlayersAlive / Action: Kill Player
forbid enemy weapon: Trigger: OnPlayerPickup / Condition: playerSide == [US] && objectId == [VCOBJ] / Action: Deny Pickup, Send Message

Something like this.
  x 1
 
http://www.myCong.net
KostiCZ
Yes, but - Deny pickup - this is not the best solution, in some missions you need to pick up enemy gun if you are last man and no ammo for example. I think enough is to write some info as admin to all players like "Player Brchi picked up forbidden enemy gun"
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
  x 1
 
Teamrespawn.cz
Brchi
Then you could just remove the "DenyPickup" action and only send a message for example. Or add something like "&& playersAlive > 1".
  x 1
 
http://www.myCong.net
Brchi
I tried out Lua to realize an event/condition/action system without much effort (basic for now):

Download source  Code
60% rule: OnPlayerJoined()
if(numPlayersDead > numPlayersAlive) then
   KillPlayer(player)
end



But then I had the idea to control the whole ptero scripting engine with Lua.
The basic idea is to intercept SCR_ExecScript() calls and if for example level.scr is called, it is bypassed and instead a Lua script is called.
That Lua script could not only call any SC_* functions from the engine, but also do anything else (change MP settings, ...).
Performance should be good and scripts could be modified without changing the map files cbf/dat, even when the map is already running (the script could also be autoupdated on clientside when modified on server).

What do you think about it?
  x 1  x 2
 
http://www.myCong.net
Silent Bob
Lets try it with some basic settings in a quick alpha version!
 
www.vietcong.info
Brchi
Damn, its problematic. Basically it works, but it gets complicated with arrays of objects for example, like this:

s_SC_MP_EnumPlayers enum_pl[64];
SC_MP_EnumPlayers(enum_pl,...

I think at the end it could become unperformant due to possible needed wrappers and comfort binding to C in general. The VC C script is better suited for all that (object arrays, pointers, ..).

Another idea: Add custom script functions (with SCR_EnableFnToScript) that can be called then to expand functionality, possibility to modify scripts on-the-fly (SCR_CompileScript, SCR_LoadScript), and also to call additional scripts (another SCR_ExecScript after mp script for example, with custom message Ids like new events, timers and such). But not sure yet if this can work.
Edited by Brchi on 13-05-2012 03:11
  x 1
 
http://www.myCong.net
Brchi
I was busy a bit with renovation.
First success. Bypassing mp script and compiling&loading&executing custom script on the fly works! Also calls to added custom functions.
Example (writes "Aounter: ..." to clients screen):

Download source  Code
// Called with SCR_ExecScript(customScrHandle, 44);

#include <inc\sc_global.h>

unsigned int counter = 0;

void ScriptMain(unsigned int message)
{
   char buf[512];

   switch(message)
   {
   case 44:
      {
         counter += 1;

         sprintf(buf, "Counter: %u", counter);

         SC_CUSTOM_Test(buf);

         SC_Fnt_Write(10.0, 10.0, buf, 1, 0xFFFFFFFF);

         break;
      }
   }
}



Download source  Code
// Defined in C/C++ Code

void SC_CUSTOM_Test(char* buf)
{
   buf[0] = 'A';
}



New vcguard will of course only support serverside. But I think a lot will be possible in future.
Edited by Brchi on 17-05-2012 20:37
  x 1
 
http://www.myCong.net
Brchi
This month was horrible Sad I couldnt find much time to work on it, but dont worry, Im on it.
Scripting will not be implemented in vcguard, I want to realize it much better for JK. No real need for vcguard functionality now.
Maplist will be replaced by a schedule where maps and settings can be set depending on time.
Weapon rules will also be in (should work flawlessly even for CTF and such, custom script will restart map without resetting scores so that all dropped weapons are gone and ppl respawn with set weapons).
  x 2
 
http://www.myCong.net
KostiCZ
When you will need some betatesting, just tell me, I can try it on our server.
Signature________________________________________________

2LT William Theolinus "KostiCZ" Boner Jr.
LRRP Squad Baker, Delta Team
cache.www.gametracker.com/player/KostiCZ/63.143.47.189:2302/b_560x95.png
 
Teamrespawn.cz
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Vietcong remaster mod General Discussion 19 28-03-2024 17:26
Jarek Kolář: Vietcong Interview General Discussion 1 28-02-2024 00:10
New documentary: Making of Vietcong General Discussion 1 17-02-2024 05:58
Getting back into Vietcong Vietcong Tech Talk 11 10-01-2024 20:18
Verkaufe Vietcong 1 Allgemeines Diskussionsforum 1 14-11-2023 16:58
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.42 seconds - 99 Queries 4,933,086 unique visits