-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
39 lines (33 loc) · 1.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Portal 2 Seamshot Calculator</title>
<script type="text/javascript" src="scripts/binary-parser.js"></script>
<script type="text/javascript" src="scripts/vector.js"></script>
<script type="text/javascript" src="scripts/bsp-parser.js"></script>
<script type="text/javascript" src="scripts/main.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="main">
<h1>Seamshot Calculator</h1>
<p>
Ray collision detection with brushes in Source-based games have a bug
allowing you to shoot through some of the seams. We call them <b>seamshots</b>
(more info on that <a target="_blank" href="https://wiki.portal2.sr/Seamshot">here</a>.)
This little tool of mine was created to find these seams in any given
Portal 2 BSP map, and give you a list of <code>sar_drawline</code> commands
in a config file which you can execute in game to see all of the seams.
False positives are undoubtedly certain, and colors make absolutely no sense,
but it's enough for me so heck it, releasing the tool so maybe someone else
can fix it for me lol.
</p>
<input type='button' id="bspFileInput" value="Select a BSP file." onclick="requestBSPFile();">
<input type='button' id='bspFileLoad' disabled="true" value='Calculate seams' onclick='loadFile();'>
<span id="log">
</span>
<span id="credits">Made by <a href="https://github.com/Krzyhau/">Krzyhau</a><br><a href="https://github.com/Krzyhau/SeamshotCalculator">Source code</a></span>
</div>
</body>
</html>