Originally Posted by hleV
Nice, but are you completely sure that you can only replace the already made weapons and not create new ones? In ESF (which is a mod and possibly uses some different weapon system) you can actually create new weapons by registering a command (like "weapon_new") to hook when the weapon is selected (or force the player to select it), writing certain messages and setting weapon's new ID (if the last ID for ESF is like 34, then for the new weapon it would be 35) in certain messages and of course setting up the weapon_new.txt file.
I don't know. The weapon system is the same as HL, thus hardcoded as hell. I don't think you can, but I've posted so people could test and finding better method. Will try something to make sure.
Originally Posted by mabaclu
Can this be used to place a sprite in the player's screen? That way we could show an image without editing hud.txt
No, sadly. I've tried and it doesn't work. I've also check the client dll, and it checks the keywords listed in the tuto only. Others will be ignored.
Originally Posted by NiHiLaNTh
Arkshine, I think that knife can be placed in first slot. I passed SlotID as 0 and NumberInSlot 1 and it worked, while setting both to 0 didnt drawed sprite in HUD.
Edit. Is it possible to change crosshair ?
I mean I passed it in .txt file and precached the sprite.But the original CS crosshair appeared. I was trying to hide crosshair with HideWeapon event but I failed.
Edit2. Maybe you explain what each parameter does? Especially, someone maybe confused with flags parameter(since you can add some flags to the weapon).
Playing with the position could make the trick, but I've noticed also it doesn't work well if you modify the position. The whole thing sounds tricky for some weapon. Keep up testing.
About crosshair, it seems the keyword "crosshair" is a second crosshair you can added and not replacing the original.
Will explain the parameters another time. Thanks.