STEAM 组
Sernix Coop Insurgency SCINS
STEAM 组
Sernix Coop Insurgency SCINS
67
游戏中
485
在线
成立于
2015 年 1 月 29 日
语言
英语
国家/地区
United States 
Hodor 2018 年 7 月 13 日 上午 5:08
Sunglass test
Circ spoke of some gear id issue u might run into while implementing his plugin some time back, I've no scripted for theater before, but how about removing the gear id check and just testing the flash event handler for everyone over one update?

Maybe even leave the gear id check off if it works, we still get a blurry flash effect with glasses working.



public Action:Event_OnFlashPlayerPre(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")); new nCurrentPlayerTeam = GetClientTeam(client); //Check if player is connected and is alive and player team is security if((IsClientConnected(client)) && (IsPlayerAlive(client)) && (nCurrentPlayerTeam == view_as<int>(TEAM_SECURITY))) { //Get player the 4th gear item which is accessory (3rd offset with a DWORD(4 bytes)) new nAccessoryItemID = GetEntData(client, g_iPlayerEquipGear + (4 * 3)); //If accessory is sunglasses item ID) if(nAccessoryItemID == g_nSunglasses_ID) { //Set player flash alpha (Which is the opacity) SetEntPropFloat(client, Prop_Send, "m_flFlashMaxAlpha", 0.5); } } return Plugin_Continue; }


taken from -> https://github.com/zWolfi/INS_sourcemod/blob/master/ins_items.sp



Circleus: my plugin work
Circleus: it just he have to set the whole thing manually
Circleus: it not just drag and drop it it to have it working
Circleus: i told him that he have to set the stuff up manually base on item order
Circleus: even lua don't have that kind of stuff
Circleus: cuz people too lazy to set it up manually

Circleus: i have the code in there but he have to manually set it up and link it with his item ID
Circleus: and he have way many more item compare to mine so his item ID gonna be a pain

Circleus: https://github.com/zWolfi/INS_sourcemod/blob/master/ins_items.sp#L15
Circleus: that my plugin right there
Circleus: see the line 15?
Circleus: those are the ID number
Circleus: he have to set those up manually


The above chat should be talking about line 16 now that he added in players on fire getting flame sprites on model + damage over time like lua server and the fire suit updated to counter that occupying line 15.



< >
正在显示第 1 - 1 条,共 1 条留言
Daimyo 2018 年 7 月 20 日 上午 12:56 
It's using gear id now so should be working. It's quite easy for the glasses since its just a function listener with item is.
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50

发帖日期: 2018 年 7 月 13 日 上午 5:08
回复数: 1