殺人圖示的問題

Home Home
引用 | 編輯 a220168722
2013-05-03 21:27
樓主
推文 x0
請問一下各位高手
如果要把原本CS1.6殺人的右上角殺人圖示
不顯示的語法是甚麼呢0.0?

獻花 x0
引用 | 編輯 弒血
2013-05-03 22:42
1樓
  
下面是引用 a220168722 於 2013-05-03 21:27 發表的 殺人圖示的問題: 到引言文
請問一下各位高手
如果要把原本CS1.6殺人的右上角殺人圖示
不顯示的語法是甚麼呢0.0?



取代掉他


模組include <hamsandwich>


請使用使用HAM_SUPERCEDE


對了 請用在 殺人訊息那段FUNTION

獻花 x1
引用 | 編輯 a7811311622
2013-05-04 00:01
2樓
  
下面是引用 a220168722 於 2013-05-03 21:27 發表的 殺人圖示的問題: 到引言文
請問一下各位高手
如果要把原本CS1.6殺人的右上角殺人圖示
不顯示的語法是甚麼呢0.0?
方法有兩種:

複製程式
public plugin_init()
{
    register_plugin("undefined", "1.0", "MyChat:a7811311622")
    
    register_message(get_user_msgid("DeathMsg"), "message_deathmsg")
}

public message_deathmsg(msg_id, msg_dest, msg_entity)
{
    if (你想擋住殺人訊息的條件)
        return PLUGIN_HANDLED;
    
    return PLUGIN_CONTINUE;
}

複製程式
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_SET) // 暫時將所有的殺人訊息全部擋住
// 你擋住殺人訊息後想做的內容
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_NOT) // 取消殺人訊息的擋住,不然之後的殺人訊息都不用出來了…


獻花 x1
引用 | 編輯 a220168722
2013-05-04 12:45
3樓
  
謝謝樓上兩位高手的幫忙 表情
修改過後確實可以使殺人不顯示

獻花 x0
引用 | 編輯 弒血
2013-05-04 13:54
4樓
  
下面是引用 a7811311622 於 2013-05-04 00:01 發表的 : 到引言文

方法有兩種:

[code]public plugin_init()
.......



a78大
能問你插件的問題嗎
我最近去找類似噴漆的貼圖
之後 找到 是 World decals
可是 後面 我參考了 ZP的血腳印的原理
還是看不懂 他最後的值表情
既不是SPR 只是數字? 就可以 產生腳印般的圖示表情


還是說 是我搞錯了表情


我想說 模擬 手榴彈爆破後 在地板上 留下 炸彈黑印效果表情

獻花 x0
引用 | 編輯 a7811311622
2013-05-04 15:14
5樓
  
下面是引用 s8720419 於 2013-05-04 13:54 發表的 : 到引言文




a78大
能問你插件的問題嗎
我最近去找類似噴漆的貼圖
之後 找到 是 World decals
可是 後面 我參考了 ZP的血腳印的原理
還是看不懂 他最後的值表情    
既不是SPR 只是數字? 就可以 產生腳印般的圖示表情    


還是說 是我搞錯了表情    


我想說 模擬 手榴彈爆破後 在地板上 留下 炸彈黑印效果表情  
呃…那數字就是SPR讀取時的ID啊…
<fakemeta_const.inc>裡面就有寫:
複製程式
    EngFunc_PrecacheModel,                // int  )            (char *s);
中間的INT就是回傳這物件的代號…就像是證件號碼會有順序碼辨識用的…
例如ZP主插件的
複製程式
g_trailSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_trail)
g_trailSpr 就是ID…隨著你載入的檔案量變化這 g_trailSpr 也不會每次都一樣的ID…
所以才需要這樣用個變數去抓這浮動的ID…

手榴彈爆破後的黑印效果確實是用 TE_WORLDDECAL 去顯示的…
SPR的ID代號是 46、47、48 三個 …至於是不是像CZ要將ID增加12我就不知道了…

獻花 x0
引用 | 編輯 弒血
2013-05-05 00:01
6樓
  
下面是引用 a7811311622 於 2013-05-04 15:14 發表的 : 到引言文

呃…那數字就是SPR讀取時的ID啊…
<fakemeta_const.inc>裡面就有寫:
複製程式
    EngFunc_PrecacheModel,                // int  )            (char *s);
中間的INT就是回傳這物件的代號…就像是證件號碼會有順序碼辨識用的…
例如ZP主插件的
複製程式
g_trailSpr = engfunc(EngFunc_PrecacheModel, sprite_grenade_trail)
g_trailSpr 就是ID…隨著你載入的檔案量變化這 g_trailSpr 也不會每次都一樣的ID…
所以才需要這樣用個變數去抓這浮動的ID…

手榴彈爆破後的黑印效果確實是用 TE_WORLDDECAL 去顯示的…
SPR的ID代號是 46、47、48 三個 …至於是不是像CZ要將ID增加12我就不知道了…



恩恩
我不懂的是 46'47'48這三個值是哪邊衍生出來的表情
應該有相對應的值才會出現想要的效果表情
還是說CS內建 本來就要用 這三個 值 去使用?表情

獻花 x0
引用 | 編輯 a7811311622
2013-05-05 14:24
7樓
  
下面是引用 s8720419 於 2013-05-05 00:01 發表的 : 到引言文




恩恩
我不懂的是 46'47'48這三個值是哪邊衍生出來的表情
應該有相對應的值才會出現想要的效果表情
還是說CS內建 本來就要用 這三個 值 去使用?表情
CS材質檔的固定數據…
清單如下:(沒意外的話應該是在AlliedModders找來的…)
複製程式
//DECALS LIST

1    black "A"
2    rescue hostages spot
3    green blood (very small) [1]
4    green blood (very small) [2]
5    green blood (small) [3]
6    green blood (small) [4]
7    green blood (medium) [5]
8    green blood (medium) [6]
9    wall burn mark [1]
10    wall burn mark [2]
11    wall burn mark [3]
12    red arrow downleft
13    red arrow downright
14    red arrow upright
15    red arrow upleft
16    red arrow leftdown
17    red arrow leftup
18    red arrow rightup
19    red arrow rightdown
20    carwheels mark[1]
21    carwheels mark[2]
22    bombsite mark
23    bombsite mark
24    red sqare mark length 
25    red sqare mark width
26    green blood splash[1]
27    green blood splash[2]
28    granade explotion mark
29    granade explotion mark small
30    granade explotion mark very small
31    black "9"
32    black "8"
33    black "7"
34    black "6"
35    black "5"
36    black "4"
37    black "3"
38    black "2"
39    black "1"
40    black "0"
41    bullet hole[1]
42    bullet hole[2]
43    bullet hole[3]
44    bullet hole[4]
45    bullet hole[5]
46    granade explotion big[1]
47    granade explotion big[2]
48    granade explotion big[3]
49    rust mark[1]
50    rust mark[2]
51    rust mark[3]
52    rust mark[4]
53    sand mark[1]
54    red signe symbol
55    yellow signe symbol
56    yellow roadside mark length 
57    yellow roadside mark width
58    wet spot
59    wet spot harder
60    orange symbol
61    green rust mark[1]
62    green rust mark[2]
63    green rust mark[3]
64    green rust mark[4]
65    gray mark
66    black "9" another direction
67    black "8" another direction
68    black "7" another direction
69    black "6" another direction
70    black "5" another direction
71    black "4" another direction
72    black "3" another direction
73    black "2" another direction
74    black "1" another direction
75    black "0" another direction
76    yellow road marks
77    white symbol
78    gray rust mark[1]
79    gray rust mark[2]
80    gray rust mark[3]
81    gray rust mark[4]
82    black "9" BIG
83    black "8" BIG
84    black "7" BIG
85    black "6" BIG
86    black "5" BIG
87    black "4" BIG
88    black "3" BIG
89    black "2" BIG
90    black "1" BIG
91    black "0" BIG
92    almost invisable sqare
93    orange half-life symbol
94    orange half, half-life symbol
95    nearly empty orange circle
96    empty orange circle
97    broken orange circle
98    part of the orange circle
99    bloody hand mark
100    "trators die"
101    "you die"
102    "surrender freeman"
103    "you'r dead freeman"
104    "die freeman"
105    big shot mark
106    ground crash
107    bloody footstep
108    bloody footstep
109    crack in the ground[1]
110    crack in the ground[2]
111    crack in the ground[3]
112    crack in the ground[4]
113    crack in the ground[5]
114    crack in the ground[6]
115    "unknown"
116    wall burn mark [1]
117    wall burn mark [2]
118    wall burn mark [3]
119    wall burn mark [4]
120    cracks in the ground
121    invisable
122    invisable
123    invisable
124    invisable
125    invisable
126    invisable
127    invisable
128    dry blood mark[1]
129    dry blood mark[2]
130    invisable
131    invisable
132    invisable
133    invisable
134    invisable
135    black thing[1]
136    black thing[2]
137    "crouch"
138    crack in the ground[1]
139    crack in the ground[2]
140    crack in the ground[3]
141    crack in the ground[4]
142    yellow "z"
143    yellow "y"
144    yellow "x"
145    yellow "w"
146    yellow "v"
147    yellow "u"
148    yellow "t"
149    yellow "s"
150    yellow "r"
151    yellow "q"
152    yellow "p"
153    yellow "o"
154    yellow "n"
155    yellow "m"
156    yellow "l"
157    yellow "k"
158    yellow "j"
159    yellow "i"
160    yellow "h"
161    yellow "g"
162    yellow "f"
163    yellow "e"
164    yellow "d"
165    yellow "c"
166    yellow "b"
167    yellow "a"
168    "processing area 3"
169    "sector A"
170    "sector B"
171    "storage area 3"
172    "storage area 2"
173    "storage area 1"
174    "storage area 3"
175    "storage area 2"
176    "storage area 1"
177    "storage area 1"
178    invisable
179    white blood splash[1]
180    white blood splash[2]
181    white blood splash[3]
182    "break"
183    white mark
184    bloody hand mark[1]
185    bloody hand mark[2]
186    bloody hand mark[3]
187    bloody hand mark[4]
188    bloody hand mark[5]
189    bloody hand mark[6]
190    red blood (very small)[1]
191    red blood (very small)[2]
192    red blood (small)[3]
193    red blood (small)[4]
194    red blood (medium)[5]
195    red blood (medium)[6]
196    red blood (medium)[7]
197    red blood (medium)[8]
198    chaos mark
199    bullet hit[1]
200    bullet hit[2]
201    bullet hit[3]
202    bullet hit[4]
203    bullet hit[5]
204    red blood (big)[1]
205    red blood (big[2]
206    black arrow up
207    black arrow down
208    red arrow up
209    red arrow down
210    red arrow right
211    red arrow left
212    "ammo"
213    yellow "9" BIG
214    yellow "8" BIG
215    yellow "7" BIG
216    yellow "6" BIG
217    yellow "5" BIG
218    yellow "4" BIG
219    yellow "3" BIG
220    yellow "2" BIG
221    yellow "1" BIG
222    yellow "0" BIG
223    numbers written with blood
224    dark square


獻花 x1