NEO-Farmers / AdminTools

Tools that work with CFTools to help identify, last person to raise a flag, unlock a vanilla combination lock or view combination.
MIT License
1 stars 0 forks source link

Add in-game commands #4

Open gregm2 opened 5 months ago

gregm2 commented 5 months ago

Current in-game commands are doing ok, but could use some enhancement. Right now thinking /neo to keep them from getting confused with existing commands. I believe init.c will see them before any modded class since the modded class will be considered the base class to the custom mission.

Start with the following:

gregm2 commented 5 months ago

Also add: Teleport to dot

Don't think server side code has access to player camera's, may need to use player object head bone like bohemia does for melee targeting. https://github.com/BohemiaInteractive/DayZ-Script-Diff/blob/5579c3b9e879b55e947785d72184a1784081b565/scripts/4_world/entities/dayzplayerimplementmeleecombat.c#L334

gregm2 commented 5 months ago

Admin tier levels? What's max/min? Store in json config file? Normal config file may be difficult to organize.

gregm2 commented 5 months ago

Add function for follow-on mods to add commands. This will allow command addition from other mods to use command handling here, so new commands could go in without requiring changes to this mod.

gregm2 commented 5 months ago

Try and block chat messages to players if they start with '/'. Not sure if we can do this server side, but worth a try on the addChat method in PlayerBase