November 26 2024 08:24:10
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· Web Links
· News Categories
· Contact Me
· Photo Gallery
· Search
· Gameservers
Languages
Users Online
· Guests Online: 25

· Members Online: 0

· Total Members: 1,134
· Newest Member: Brody
Teamspeak 3
Last Seen Users
· hackepter09:54:23
· GONZO16:00:48
· Intruder16:27:31
· Sully 1 day
· desintegrator 2 days
· WEZ 2 days
· Homi 3 days
· The ACE 4 days
· xhc 1 week
· dRgiGGLeZ 1 week
· El Dookie 1 week
· Melber 2 weeks
· SGT PEPPER 2 weeks
· martyr 2 weeks
· Terminator 2 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 interactive map General Discussion 1 23-11-2024 20:08
WG: Vietcong 1 Informationsseite Allgemeines Diskussionsforum 15 23-11-2024 11:05
Vietcong remaster mod General Discussion 25 06-11-2024 12:22
Is www.vietcong-customs.com Coming back online soon! General Discussion 6 06-11-2024 11:52
DOWNLOAD FOR VIETCONG FIST ALPHA General Discussion 2 04-11-2024 13:56
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Render time: 0.51 seconds - 99 Queries 5,471,908 unique visits