hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2024.05.14. 11:16



Jelenlévő felhasználók

Jelenleg 321 felhasználó van jelen :: 0 regisztrált, 0 rejtett és 321 vendég

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: nincs regisztrált felhasználó az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása  Hozzászólás a témához  [ 39256 hozzászólás ]  Oldal Előző 11511 1512 1513 1514 15153926 Következő
Szerző Üzenet
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:40 
Offline
Őskövület
Avatar

Csatlakozott: 2011.09.17. 17:54
Hozzászólások: 2350
Megköszönt másnak: 40 alkalommal
Megköszönték neki: 57 alkalommal
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod script.
  2. *
  3. * Sniper Realism 1.0
  4. * (c) 2003, SuicideDog
  5. * This file is provided as is (no warranties).
  6. *
  7. * BASED ON CODE FROM *BMJ* -- thanks man
  8. *
  9. * Ok.. works for scout, awp, g3sg1, sig550, sig552, and aug
  10. *
  11. * Features:
  12. * Fadein like DOD (thanks to BMJ)
  13. * Scope jiggles if scoped, and you move
  14. * Unscopes you if you jump/fall (also prevents scoping in the air)
  15. */
  16.  
  17. /* CVARS:
  18. * amx_snipe_realism (1)|0
  19. * turns it off and on
  20. * amx_scopetime1 "1"
  21. * 1 being the time it takes to fade in at level 1 scope
  22. * amx_scopetime2 "4"
  23. * 4 being the time it takes to fade in at level 2 scope
  24. */
  25.  
  26. /* TO DO:
  27. * Add recoil of some kind
  28. */
  29.  
  30. #include <amxmod>
  31. #include <VexdUM>
  32.  
  33. new velocityI[3]
  34. new gmsgShake
  35. new taskid[32]
  36.  
  37. stock get_user_velocity(id, velocity[3]) {
  38. new Float:vel[3]
  39. entity_get_vector(id, EV_VEC_velocity, vel)
  40. FVecIVec(vel, velocity)
  41. }
  42.  
  43.  
  44. public plugin_init()
  45. {
  46. register_plugin("Sniper Realism", "1.0", "SuicideDog")
  47. register_event("SetFOV", "scope_func", "be", "1<90")
  48. register_event("SetFOV", "unscope_func", "be", "1=90")
  49. register_event("ResetHUD","newround","b")
  50. register_cvar("amx_snipe_realism", "1")
  51. register_cvar("amx_scopetime1", "1")
  52. register_cvar("amx_scopetime2", "4")
  53. gmsgShake = get_user_msgid("ScreenShake")
  54.  
  55. }
  56.  
  57. public newround(id){// this is needed to make sure the lastinv works for unscoping
  58. client_cmd(id,"weapon_knife;lastinv")
  59. return PLUGIN_CONTINUE
  60. }
  61.  
  62. public scope_func(id)
  63. {
  64. if (get_cvar_num("amx_snipe_realism"))
  65. {
  66. new fov = read_data(1)
  67. new weapon, clip, ammo
  68. weapon = get_user_weapon(id, clip, ammo)
  69.  
  70. if (weapon == 3 || weapon == 18 || weapon == 13 || weapon == 24 || weapon == 8 || weapon == 27) // scout, awp, g3sg1, sig550, sig552, and aug
  71.  
  72. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  73.  
  74. if (fov > 20){
  75. write_short(get_cvar_num("amx_scopetime1")<<12)
  76. }else{
  77. write_short(get_cvar_num("amx_scopetime2")<<12)
  78. }
  79. write_short(1<<16)
  80. write_short(1<<1)
  81. write_byte(0)
  82. write_byte(0)
  83. write_byte(0)
  84. write_byte(255)
  85. message_end()
  86. if (taskid[id] == 0){
  87. new playerid[1]
  88. playerid[0] = id
  89. taskid[id] = get_user_userid(id)// ties the task to the user id <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  90. set_task(0.1, "check_movement", taskid[id], playerid[0], 1, "b")
  91. }
  92. }
  93. return PLUGIN_HANDLED
  94. }
  95.  
  96. public unscope_func(id)
  97. {
  98. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  99. write_short(1<<1)
  100. write_short(1<<1)
  101. write_short(1<<1)
  102. write_byte(0)
  103. write_byte(0)
  104. write_byte(0)
  105. write_byte(0)
  106. message_end()
  107. remove_task(taskid[id])
  108. taskid[id] = 0
  109. return PLUGIN_HANDLED
  110. }
  111.  
  112. public check_movement(playerid[]) { //check for movement
  113. new id = playerid[0]
  114. get_user_velocity(id, velocityI)
  115. new flags = entity_get_int(id, EV_INT_flags)
  116.  
  117.  
  118. if (!(flags & (1<<9))){ //if in the air, unscope
  119. client_cmd(id,"lastinv;lastinv")
  120. unscope_func(id)
  121. return PLUGIN_HANDLED
  122. }
  123. if (velocityI[0] != 0 || velocityI[1] != 0 || velocityI[2] != 0) { //check movement, if moving shake
  124. new duck = entity_get_int(id,EV_INT_flags)
  125.  
  126. if(duck & FL_DUCKING){ //if ducking shake less
  127. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  128. write_short(1<<11) // shake amount
  129. write_short(1<<11) // shake lasts this long
  130. write_short(1<<11) // shake noise frequency
  131. message_end()
  132. }else{
  133. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  134. write_short(1<<13) // shake amount
  135. write_short(1<<11) // shake lasts this long
  136. write_short(1<<13) // shake noise frequency
  137. message_end()
  138. }
  139. return PLUGIN_HANDLED
  140. }
  141. return PLUGIN_HANDLED
  142. }
  143.  


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:44 
Offline
Veterán

Csatlakozott: 2012.11.01. 20:49
Hozzászólások: 1837
Megköszönt másnak: 25 alkalommal
Megköszönték neki: 78 alkalommal
a neve mi XD
VirTuaL ~` írta:
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod script.
  2. *
  3. * Sniper Realism 1.0
  4. * (c) 2003, SuicideDog
  5. * This file is provided as is (no warranties).
  6. *
  7. * BASED ON CODE FROM *BMJ* -- thanks man
  8. *
  9. * Ok.. works for scout, awp, g3sg1, sig550, sig552, and aug
  10. *
  11. * Features:
  12. * Fadein like DOD (thanks to BMJ)
  13. * Scope jiggles if scoped, and you move
  14. * Unscopes you if you jump/fall (also prevents scoping in the air)
  15. */
  16.  
  17. /* CVARS:
  18. * amx_snipe_realism (1)|0
  19. * turns it off and on
  20. * amx_scopetime1 "1"
  21. * 1 being the time it takes to fade in at level 1 scope
  22. * amx_scopetime2 "4"
  23. * 4 being the time it takes to fade in at level 2 scope
  24. */
  25.  
  26. /* TO DO:
  27. * Add recoil of some kind
  28. */
  29.  
  30. #include <amxmod>
  31. #include <VexdUM>
  32.  
  33. new velocityI[3]
  34. new gmsgShake
  35. new taskid[32]
  36.  
  37. stock get_user_velocity(id, velocity[3]) {
  38. new Float:vel[3]
  39. entity_get_vector(id, EV_VEC_velocity, vel)
  40. FVecIVec(vel, velocity)
  41. }
  42.  
  43.  
  44. public plugin_init()
  45. {
  46. register_plugin("Sniper Realism", "1.0", "SuicideDog")
  47. register_event("SetFOV", "scope_func", "be", "1<90")
  48. register_event("SetFOV", "unscope_func", "be", "1=90")
  49. register_event("ResetHUD","newround","b")
  50. register_cvar("amx_snipe_realism", "1")
  51. register_cvar("amx_scopetime1", "1")
  52. register_cvar("amx_scopetime2", "4")
  53. gmsgShake = get_user_msgid("ScreenShake")
  54.  
  55. }
  56.  
  57. public newround(id){// this is needed to make sure the lastinv works for unscoping
  58. client_cmd(id,"weapon_knife;lastinv")
  59. return PLUGIN_CONTINUE
  60. }
  61.  
  62. public scope_func(id)
  63. {
  64. if (get_cvar_num("amx_snipe_realism"))
  65. {
  66. new fov = read_data(1)
  67. new weapon, clip, ammo
  68. weapon = get_user_weapon(id, clip, ammo)
  69.  
  70. if (weapon == 3 || weapon == 18 || weapon == 13 || weapon == 24 || weapon == 8 || weapon == 27) // scout, awp, g3sg1, sig550, sig552, and aug
  71.  
  72. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  73.  
  74. if (fov > 20){
  75. write_short(get_cvar_num("amx_scopetime1")<<12)
  76. }else{
  77. write_short(get_cvar_num("amx_scopetime2")<<12)
  78. }
  79. write_short(1<<16)
  80. write_short(1<<1)
  81. write_byte(0)
  82. write_byte(0)
  83. write_byte(0)
  84. write_byte(255)
  85. message_end()
  86. if (taskid[id] == 0){
  87. new playerid[1]
  88. playerid[0] = id
  89. taskid[id] = get_user_userid(id)// ties the task to the user id <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  90. set_task(0.1, "check_movement", taskid[id], playerid[0], 1, "b")
  91. }
  92. }
  93. return PLUGIN_HANDLED
  94. }
  95.  
  96. public unscope_func(id)
  97. {
  98. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  99. write_short(1<<1)
  100. write_short(1<<1)
  101. write_short(1<<1)
  102. write_byte(0)
  103. write_byte(0)
  104. write_byte(0)
  105. write_byte(0)
  106. message_end()
  107. remove_task(taskid[id])
  108. taskid[id] = 0
  109. return PLUGIN_HANDLED
  110. }
  111.  
  112. public check_movement(playerid[]) { //check for movement
  113. new id = playerid[0]
  114. get_user_velocity(id, velocityI)
  115. new flags = entity_get_int(id, EV_INT_flags)
  116.  
  117.  
  118. if (!(flags & (1<<9))){ //if in the air, unscope
  119. client_cmd(id,"lastinv;lastinv")
  120. unscope_func(id)
  121. return PLUGIN_HANDLED
  122. }
  123. if (velocityI[0] != 0 || velocityI[1] != 0 || velocityI[2] != 0) { //check movement, if moving shake
  124. new duck = entity_get_int(id,EV_INT_flags)
  125.  
  126. if(duck & FL_DUCKING){ //if ducking shake less
  127. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  128. write_short(1<<11) // shake amount
  129. write_short(1<<11) // shake lasts this long
  130. write_short(1<<11) // shake noise frequency
  131. message_end()
  132. }else{
  133. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  134. write_short(1<<13) // shake amount
  135. write_short(1<<11) // shake lasts this long
  136. write_short(1<<13) // shake noise frequency
  137. message_end()
  138. }
  139. return PLUGIN_HANDLED
  140. }
  141. return PLUGIN_HANDLED
  142. }
  143.  


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:50 
Offline
Tiszteletbeli

Csatlakozott: 2010.02.04. 19:12
Hozzászólások: 3528
Megköszönt másnak: 26 alkalommal
Megköszönték neki: 180 alkalommal
benne van az smaban
m0csy652 írta:
a neve mi XD
VirTuaL ~` írta:
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod script.
  2. *
  3. * Sniper Realism 1.0
  4. * (c) 2003, SuicideDog
  5. * This file is provided as is (no warranties).
  6. *
  7. * BASED ON CODE FROM *BMJ* -- thanks man
  8. *
  9. * Ok.. works for scout, awp, g3sg1, sig550, sig552, and aug
  10. *
  11. * Features:
  12. * Fadein like DOD (thanks to BMJ)
  13. * Scope jiggles if scoped, and you move
  14. * Unscopes you if you jump/fall (also prevents scoping in the air)
  15. */
  16.  
  17. /* CVARS:
  18. * amx_snipe_realism (1)|0
  19. * turns it off and on
  20. * amx_scopetime1 "1"
  21. * 1 being the time it takes to fade in at level 1 scope
  22. * amx_scopetime2 "4"
  23. * 4 being the time it takes to fade in at level 2 scope
  24. */
  25.  
  26. /* TO DO:
  27. * Add recoil of some kind
  28. */
  29.  
  30. #include <amxmod>
  31. #include <VexdUM>
  32.  
  33. new velocityI[3]
  34. new gmsgShake
  35. new taskid[32]
  36.  
  37. stock get_user_velocity(id, velocity[3]) {
  38. new Float:vel[3]
  39. entity_get_vector(id, EV_VEC_velocity, vel)
  40. FVecIVec(vel, velocity)
  41. }
  42.  
  43.  
  44. public plugin_init()
  45. {
  46. register_plugin("Sniper Realism", "1.0", "SuicideDog")
  47. register_event("SetFOV", "scope_func", "be", "1<90")
  48. register_event("SetFOV", "unscope_func", "be", "1=90")
  49. register_event("ResetHUD","newround","b")
  50. register_cvar("amx_snipe_realism", "1")
  51. register_cvar("amx_scopetime1", "1")
  52. register_cvar("amx_scopetime2", "4")
  53. gmsgShake = get_user_msgid("ScreenShake")
  54.  
  55. }
  56.  
  57. public newround(id){// this is needed to make sure the lastinv works for unscoping
  58. client_cmd(id,"weapon_knife;lastinv")
  59. return PLUGIN_CONTINUE
  60. }
  61.  
  62. public scope_func(id)
  63. {
  64. if (get_cvar_num("amx_snipe_realism"))
  65. {
  66. new fov = read_data(1)
  67. new weapon, clip, ammo
  68. weapon = get_user_weapon(id, clip, ammo)
  69.  
  70. if (weapon == 3 || weapon == 18 || weapon == 13 || weapon == 24 || weapon == 8 || weapon == 27) // scout, awp, g3sg1, sig550, sig552, and aug
  71.  
  72. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  73.  
  74. if (fov > 20){
  75. write_short(get_cvar_num("amx_scopetime1")<<12)
  76. }else{
  77. write_short(get_cvar_num("amx_scopetime2")<<12)
  78. }
  79. write_short(1<<16)
  80. write_short(1<<1)
  81. write_byte(0)
  82. write_byte(0)
  83. write_byte(0)
  84. write_byte(255)
  85. message_end()
  86. if (taskid[id] == 0){
  87. new playerid[1]
  88. playerid[0] = id
  89. taskid[id] = get_user_userid(id)// ties the task to the user id <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  90. set_task(0.1, "check_movement", taskid[id], playerid[0], 1, "b")
  91. }
  92. }
  93. return PLUGIN_HANDLED
  94. }
  95.  
  96. public unscope_func(id)
  97. {
  98. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
  99. write_short(1<<1)
  100. write_short(1<<1)
  101. write_short(1<<1)
  102. write_byte(0)
  103. write_byte(0)
  104. write_byte(0)
  105. write_byte(0)
  106. message_end()
  107. remove_task(taskid[id])
  108. taskid[id] = 0
  109. return PLUGIN_HANDLED
  110. }
  111.  
  112. public check_movement(playerid[]) { //check for movement
  113. new id = playerid[0]
  114. get_user_velocity(id, velocityI)
  115. new flags = entity_get_int(id, EV_INT_flags)
  116.  
  117.  
  118. if (!(flags & (1<<9))){ //if in the air, unscope
  119. client_cmd(id,"lastinv;lastinv")
  120. unscope_func(id)
  121. return PLUGIN_HANDLED
  122. }
  123. if (velocityI[0] != 0 || velocityI[1] != 0 || velocityI[2] != 0) { //check movement, if moving shake
  124. new duck = entity_get_int(id,EV_INT_flags)
  125.  
  126. if(duck & FL_DUCKING){ //if ducking shake less
  127. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  128. write_short(1<<11) // shake amount
  129. write_short(1<<11) // shake lasts this long
  130. write_short(1<<11) // shake noise frequency
  131. message_end()
  132. }else{
  133. message_begin(MSG_ONE,gmsgShake,{0,0,0},id)
  134. write_short(1<<13) // shake amount
  135. write_short(1<<11) // shake lasts this long
  136. write_short(1<<13) // shake noise frequency
  137. message_end()
  138. }
  139. return PLUGIN_HANDLED
  140. }
  141. return PLUGIN_HANDLED
  142. }
  143.  

_________________
http://www.ebateam.eu/


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:51 
Offline
Őskövület
Avatar

Csatlakozott: 2012.03.22. 18:22
Hozzászólások: 2978
Megköszönt másnak: 115 alkalommal
Megköszönték neki: 368 alkalommal
Sniper Realism

_________________
Blasenkampfwagen

https://discord.gg/uBYnNnZP
GTA:PURSUIT MTA


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:54 
Offline
Veterán

Csatlakozott: 2012.11.01. 20:49
Hozzászólások: 1837
Megköszönt másnak: 25 alkalommal
Megköszönték neki: 78 alkalommal
ty. Amugy van már advanced bans screenes kiadva?


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 18:58 
Offline
Őskövület
Avatar

Csatlakozott: 2012.03.22. 18:22
Hozzászólások: 2978
Megköszönt másnak: 115 alkalommal
Megköszönték neki: 368 alkalommal
ja asszem :D

_________________
Blasenkampfwagen

https://discord.gg/uBYnNnZP
GTA:PURSUIT MTA


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 19:01 
Offline
Őskövület
Avatar

Csatlakozott: 2012.03.22. 18:22
Hozzászólások: 2978
Megköszönt másnak: 115 alkalommal
Megköszönték neki: 368 alkalommal
ezt tatláltam

http://forum.kgb-hosting.com/showthread ... ScreenShot

_________________
Blasenkampfwagen

https://discord.gg/uBYnNnZP
GTA:PURSUIT MTA


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 19:04 
Offline
Developer
Avatar

Csatlakozott: 2011.06.01. 21:11
Hozzászólások: 7962
Megköszönt másnak: 295 alkalommal
Megköszönték neki: 535 alkalommal
m0csy652 írta:
ty. Amugy van már advanced bans screenes kiadva?


1sort bele írni marha nehéz :D

_________________
http://www.easyrankup.eu


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 19:06 
Offline
Veterán

Csatlakozott: 2012.11.01. 20:49
Hozzászólások: 1837
Megköszönt másnak: 25 alkalommal
Megköszönték neki: 78 alkalommal
kiki írta:
m0csy652 írta:
ty. Amugy van már advanced bans screenes kiadva?


1sort bele írni marha nehéz :D

ird bele xD


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Írj! - Offtopik
HozzászólásElküldve: 2013.05.11. 19:07 
Offline
Jómunkásember
Avatar

Csatlakozott: 2012.08.05. 20:43
Hozzászólások: 465
Megköszönt másnak: 55 alkalommal
Megköszönték neki: 14 alkalommal
|Steam| Counter Strike Backup

_________________
Facebook:
Kép
Banner
Kép
TeamSpeak3:
Kép

http://www.smmg.hu/


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése:  Rendezés  
Új téma nyitása  Hozzászólás a témához  [ 39256 hozzászólás ]  Oldal Előző 11511 1512 1513 1514 15153926 Következő


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 20 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole