Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. .h:
  2.  
  3. struct C4EnhancementsSettingsStruct : public virtual SettingsLoader {
  4. C4EnhancementsSettingsStruct (const char *ININame) : SettingsLoader(ININame) {
  5. }
  6. void Load();
  7. ...
  8. bool enable_c4info_poking;
  9. ..
  10. }
  11.  
  12.  
  13. .cpp:
  14.  
  15. void C4EnhancementsSettingsStruct::Load() {
  16. SettingsLoader::Load();
  17.  
  18. ...
  19. LoadBool(enable_c4info_poking,"enable_c4info_poking",false,true,false,false);
  20. ...
  21. }
  22.  
  23.  
  24. void Plugin_Load() {
  25. C4EnhancementsSettings = new C4EnhancementsSettingsStruct("c4_enhancements.ini");
  26. C4EnhancementsSettings->Load();
  27. }
  28.  
  29.  
  30. if (C4EnhancementsSettings->enable_c4info_poking && (Get_Object_Type(obj) == Get_Object_Type(poker))) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement