Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> Territory System Re-Write:
- Move ALL players to independant
- - Remove Blu/Op from team selection menu
- Groups of players own territory
- - Using group system to determine groups
- Territory placement & size done via config file
- Database for Territory system columns:
- - Server ID
- - Location & Name & PhoneBooth Location
- - Owners (UID List)
- - Status (Captured / Not Captured)
- - Capture Time
- On Server-Start:
- - Get status of territories and who controls them
- Start Territory Info Update Loop:
- - Saves territory info to DB every X minutes (config)
- - Updates cash earning multiplier based on capture time
- - Pays players that own territories
- Loop/Trigger for territories:
- - Use headless client for this if possible
- When group enters territory:
- If territory not controlled:
- - Timer starts, group starts capturing territory, timer lasts X mins (config)
- - Notification to other players on server & map marker colour change to yellow (config)
- If territory is controlled:
- - Count controlling groups numbers (include AI)
- If entering group larger than controlling group:
- - They start capturing, map marker changes yellow (config), notification sent on server
- If entering group is same size:
- - Territory changes to contested, map marker to orange (config)
- If entering group is smaller than controlling group:
- - Notification of territory being attacked
- When group captures territory:
- - If taken from another group notify server of this
- - If wasnt owned before, still notify, just different
- - Create phone-booth for territory control and info (config pos for these)
- - Start payment to players (config X cash per X minutes with X multiplyer for total time owned)
- Phone Booth for territory control:
- - Mercenery Addon control
- - Payment timer & info
- - Able to add/remove users from territory
- - Placed via DB config
- Territory status colours (configable):
- - Green (Owned by group)
- - Red (Not owned)
- - Yellow (Being Captured)
- - Orange (Contested)
Advertisement
Add Comment
Please, Sign In to add comment